99 Elm Problems/Problem 7/Solutions

Solution 1: Recursive version