Icertis interview question

Remove duplicates from the table.