Pergunta de entrevista da empresa iHerb

You have an array of integers. Create a function that finds the first integer that appears more than once in the array.