99 Elm Problems/Problem 10/Solutions

Solution 1: Recursive version