solve the remove Duplicates from sorted list II problem.