Problem 9 Haskell
Problem 10 Haskell