Sabre interview question

question about generating pandigital numbers.