update remove_duplicates_from_sorted_array_ii more simple