input: Write a function to remove all occurrences of the given element in the given array. If the array is empty or the element is not found, return the original array.
  def remove_element(arr, element):
      arr = [x for x in arr if x != element]
      return arr
  
  assert remove_element([2, 4, 5, 7, 4, 2], 4) == [2, 5, 7, 2]
  assert remove_element([3, 5, 3, 6, 7], 3) == [5, 6, 7]
  assert remove_element([1, 1, 1, 1], 1) == []
  assert remove_element([], 3) == []
  assert remove_element([2, 4, 5, 7, 4, 2], 9) == [2, 4, 5, 7, 4, 2]
output: def remove_element(arr, element):
      arr = [x for x in arr if x != element]
      return arr