Solves problem 6 haskell