Pergunta de entrevista da empresa Paycom

Coding question about unique numbers in a array