99 Elm Problems/Problem 11/Solutions

Solution 1: Recursive version