Pergunta de entrevista da empresa Salesforce

Find the first duplicate number in an array. If no duplicates exist, return -1.