In this ques do we have to erase the element or not is not specified


#1

why is it already assumed we have to move the sorted array in prefix with unique elements whereas the duplicates in end