Pregunta de entrevista de Sabre

question about generating pandigital numbers.