Tech Mahindra interview question

how to remove duplicates from list