sillySum function takes array of numbers, returns sum of each (number * number[index]).