Solve problem 11 - still a bit slow.