Sensei's Library, problem 23

Adapted from Beginner Exercise 23 · OpenContent License

All problems