Create a function reduceArray that returns the sum of all elements in an array using reduce().

Output: