input: Write a function to swap the elements of two arrays of integers. The function should take two arrays as input and ensure that they are of the same length. The elements of the arrays should be swapped in place. If the arrays are not of the same length, the function should raise an AssertionError.
  assert swap([3, 5, 6, 9], [2, 4, 7, 8])==None
  assert swap([1, 2, 4], [1, 3, 5])==None
  assert swap([9, 8], [7, 6])==None
  assert swap([2, 3, 6], [8, 4, 5])==None
  assert swap([1], [2])==None
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2), "Arrays must be of the same length"
      for i in range(len(arr1)):
          arr1[i], arr2[i] = arr2[i], arr1[i]