Sensei's Library, problem 17

Adapted from Beginner Exercise 17 · OpenContent License

All problems