input: Write a function that takes two arrays of integers as input and swaps their elements. If the input arrays are of different lengths, the function should raise an AssertionError.
  assert swap([3, 5, 6, 9], [2, 4, 7, 8])
  assert swap([1, 2, 3], [4, 5, 6])
  assert swap([10, 20], [30, 40])
  assert swap([5, 7, 9, 11], [2, 4, 6, 8])
  assert swap([], [])
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2), "Input arrays must have the same length"
      arr1[:], arr2[:] = arr2[:], arr1[:]
      return arr1, arr2