Sensei's Library, problem 11

Adapted from Beginner Exercise 11 · OpenContent License

All problems