Capgemini Invent Interview Question

How do delete the duplicate records