input: Write a function to swap the elements of two arrays of integers. If the arrays have different lengths, the function should raise an AssertionError. Use a temp variable to swap the corresponding elements of the two arrays.
  assert swap([3, 5, 6, 9], [2, 4, 7, 8]) == None
  assert swap([3, 5, 6], [2, 4, 7]) == None
  assert swap([3, 5, 6, 9], [2, 4, 7]) == AssertionError
  assert swap([3, 5], [2, 4, 7, 8]) == AssertionError
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2), "AssertionError"
      for i in range(len(arr1)):
          temp = arr1[i]
          arr1[i] = arr2[i]
          arr2[i] = temp