Sensei's Library, problem 299

Adapted from Beginner Exercise 299 · OpenContent License

All problems