input: Write a function to remove all occurrences of the given element in a given array. If the given array is empty then return the empty array.
  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, 10, 1, 2], 10)==[3, 5, 1, 2]
  assert remove_element([4, 3, 1, 2], 2)==[4, 3, 1]
  assert remove_element([3, 5, 4, 1, 2], 0)==[3, 5, 4, 1, 2]
  assert remove_element([], 5)==[]
output: remove_element(arr, element):
      return [x for x in arr if x != element]