Question d’entretien chez SAP

Write code to find the duplicate entry in an array.