input: Write a function called remove_element that takes in an array and an element, and returns a new array with all occurrences of the given element removed. The function should maintain the original order of the elements. If the array is empty, it should return an empty array.
  assert remove_element([2, 4, 5, 7, 4, 2], 4) == [2, 5, 7, 2]
  assert remove_element([10, 20, 30, 20], 20) == [10, 30]
  assert remove_element([3, 3, 3], 3) == []
  assert remove_element([], 5) == []
output: def remove_element(arr, element):
      return [x for x in arr if x != element]