Sensei's Library, problem 27

Adapted from Beginner Exercise 27 · OpenContent License

All problems