Tech Mahindra Interview Question

how to remove duplicates from list