:ok_hand: Problem 9

I'm sure this would have been easier in Racket