Sensei's Library, problem 29

Adapted from Beginner Exercise 29 · OpenContent License

All problems