Tech Mahindra interview question

Program on removing the duplicates in an array