Commvault Interview Question

Find the duplicate element in the array.