Problem 3 haskell
Problem 4 Haskell
Problem 7 Haskell