Solutions to 4 of a set of 99 Haskell questions
Q5/6