Tech Mahindra Interview Question

Program on removing the duplicates in an array