P24: Added Haskell solution.