Pregunta de entrevista de Niantic

Find the duplicate number from an array.