Added Haskell solution to problem 4