99 Elm Problems/Problem 5/Solutions

Solution 1: Recursive version

Solution 2: Using