Update deleteDuplicatesFromSortedArray2