Salesforce Interview Question

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