solution: remove duplicates from sorted list II 1