Question d’entretien chez Intrepid Pursuits

Find the first duplicate in an array.