Sensei's Library, problem 21

Adapted from Beginner Exercise 21 · OpenContent License

All problems