removeDuplicatesFromSortedArray