input: Write a python function to remove multiple occurrences of elements in a list, keeping only those that appear once or twice.
  assert remove_multiple_occurrences([1,2,1,3,4,2,2,2,3,1]) == [4]
  assert remove_multiple_occurrences([5,3,2,5,1,2,3,5,3,2,1,4]) == [4]
  assert remove_multiple_occurrences([10,20,30,20,10,30,40,50]) == [40,50]
output: def remove_multiple_occurrences(lst):
      from collections import Counter
      count = Counter(lst)
      return [x for x in lst if count[x] == 1 or count[x] == 2]