Pergunta de entrevista da empresa Intrepid Pursuits

Find the first duplicate in an array.