Sensei's Library, problem 339

Adapted from Beginner Exercise 339 · OpenContent License

All problems