Update RemoveDuplicatesfromSortedArray