How would efficiently sum a large array?
Implement the function below to return the sum of every integer in the input array. The solution should process each element once and use constant auxiliary space.
Function signature: def sum_large_array(nums):
Input is a list of integers. Output is one integer containing their total.
def sum_large_array(nums):