input: Write a function to remove all occurrences of the given element in the given array and return the modified array.
  assert remove_element([2, 4, 5, 7, 4, 2], 4)==[2, 5, 7, 2]
  assert remove_element([1, 2, 3, 4, 5], 3)==[1, 2, 4, 5]
  assert remove_element([10, 20, 30, 30, 40], 30)==[10, 20, 40]
  assert remove_element([], 1)==[]
  assert remove_element([1, 1, 1, 1], 1)==[]
output: def remove_element(arr, element):
      return [x for x in arr if x != element]