Sensei's Library, problem 340

Adapted from Beginner Exercise 340 · OpenContent License

All problems