Problem 10 - solved with the foldLeft hammer
Problem 10 - neater solution just using map