Pergunta de entrevista da empresa IBM

Numbers with repeated digits, and an array of those