Exercise 3_11 (List.foldLeft)