Capgemini Invent interview question

How do delete the duplicate records