Exercise 3_12 (List.sum3, List.product3, List.length3) using foldLeft