Commvault interview question

Find the duplicate element in the array.