Pregunta de entrevista de Intrepid Pursuits

Find the first duplicate in an array.