Bloomberg interview question

how to find the duplicate number from an array