RemoveDuplicatesfromSortedArray code clean