input: Write a Python function to resize an array of integers in place.
  assert resize_array([1, 2, 3], 5) == [1, 2, 3, 0, 0]
  assert resize_array([1, 2, 3, 4, 5], 3) == [1, 2, 3]
  assert resize_array([], 4) == [0, 0, 0, 0]
  assert resize_array([10, 20, 30, 40], 2) == [10, 20]
output: def resize_array(arr, new_size):
      if new_size > len(arr):
          arr.extend([0] * (new_size - len(arr)))
      else:
          del arr[new_size:]
      return arr