added haskell solution for problem 1