結果 : write ac function to remove duplicates from an ordered array