Data source: http://rosettacode.org/wiki/Sum_and_product_of_an_array
