Sensei's Library, problem 20

Adapted from Beginner Exercise 20 · OpenContent License

All problems