function to remove an element from a List (remove 1 (a b c)) ->(A C)