Sensei's Library, problem 317

Adapted from Beginner Exercise 317 · OpenContent License

All problems