99 Elm Problems/Problem 2/Solutions

Solution 1: Recursive search for the next to last element

Solution 2: Functional composition