Pergunta de entrevista da empresa Tredence

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