solve the remove duplicates from the sorted List problem.