Sensei's Library, problem 318

Adapted from Beginner Exercise 318 · OpenContent License

All problems