Update deleteDuplicatesFromSortedArray