Sum of an array as runningSum[i] = sum(nums[0]…nums[i])