Added Haskell Solution for Problem 6