Array contains 1-n, find duplicate number