Pregunta de entrevista de Commvault

Find the duplicate element in the array.