Sensei's Library, problem 246

Adapted from Beginner Exercise 246 · OpenContent License

All problems