Solution for Remove Duplicates from Sorted List