Tech Mahindra Interview Question

Find duplicate of an array