Haskell Function
Puzzle