Pergunta de entrevista da empresa Nextdoor

Find number repeated more than once in an array with constant space