Niantic Interview Question

Find the duplicate number from an array.