Sensei's Library, problem 24

Adapted from Beginner Exercise 24 · OpenContent License

All problems