Added Haskell solution for problem #2.