Sensei's Library, problem 42

Adapted from Beginner Exercise 42 · OpenContent License

All problems