Sensei's Library, problem 300

Adapted from Beginner Exercise 300 · OpenContent License

All problems