input: Write a function to reverse an array of integer values. If the input array is empty, return an empty array.
  assert reverse_array([1, 2, 3, 4, 5])==[5, 4, 3, 2, 1]
  assert reverse_array([])==[]
output: def reverse_array(arr):
      return arr[::-1]