Sensei's Library, problem 3

Adapted from Beginner Exercise 3 · OpenContent License

All problems