update remove_duplicates_from_sorted_array another solutions