Tredence Interview Question

they asked to find all unique element in array and deleate the duplicate ones without using extra space