Cisco Interview Question

How to find duplicate number in an array in order 1