input: Write a python function to calculate the sum of elements in an array.
  assert calculate([1, 2, 3, 4, 5]) == 15
  assert calculate([10, 20, 30]) == 60
  assert calculate([0, 0, 0, 0, 0]) == 0
output: def calculate(arr):
      return sum(arr)