input: Write a function to take as input two array of integers and swap their elements. If the arrays have different lengths, the function should raise an AssertionError. Afterwards, each element in the first array should be swapped with the corresponding element in the second array. 
  
  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