HCLTech Interview Question

Remove the duplicate elements from an array