input: Write a function to take as input two array of integers and swap their elements. If the arrays do not have the same length, raise an AssertionError. Ensure the elements in the first array are swapped with the corresponding elements in the second array.
  
  assert swap([3, 5, 6, 9], [2, 4, 7, 8]) == None
  assert swap([1, 2, 3], [4, 5, 6]) == None
  assert swap([9, 8], [7, 6]) == None
  assert swap([1], [2]) == None
  assert swap([], []) == None
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2), "Arrays must have the same length"
      for i in range(len(arr1)):
          arr1[i], arr2[i] = arr2[i], arr1[i]