Returns the sum of the elements in the list.
Array: Location of the list to sum
Output-location: Location to store the output data