input: Write a function to take as input two arrays of integers and swap their elements. The input arrays must have the same length. If the input arrays have different lengths, an assertion error should be raised.
  
  def swap(arr1, arr2):
      assert len(arr1) == len(arr2)
      for i in range(len(arr1)):
          temp = arr1[i]
          arr1[i] = arr2[i]
          arr2[i] = temp
output: def swap(arr1, arr2):
      assert len(arr1) == len(arr2)
      for i in range(len(arr1)):
          temp = arr1[i]
          arr1[i] = arr2[i]
          arr2[i] = temp