Pregunta de entrevista de IBM

Numbers with repeated digits, and an array of those