user
Task: Create a function that takes an array of numbers and returns the sum of the numbers.
Input: [5, 10, 15]
Output:
assistant
def array_sum(arr):
  sum = 0
  for n in arr:
    sum += n
  return sum

print(array_sum([5, 10, 15]))