add accepted cpp Remove Duplicates from Sorted List