Create deleteDuplicatesFromSortedArray