Sensei's Library, problem 242

Adapted from Beginner Exercise 242 · OpenContent License

All problems