iPay Systems interview question

Find the duplicate number in an array?