input: Write a function to calculate the sum of an array of integers. The function should return the sum of all elements in the array. If the array is empty, return 0.
  assert calculate_sum([1, 3, 5, 7])==16
  assert calculate_sum([])==0
output: def calculate_sum(arr):
      return sum(arr)