Sensei's Library, problem 123

Adapted from Beginner Exercise 123 · OpenContent License

All problems