Given number . Print all permutations of numbers from to in lexicographical order.
One number , 0 < n < 10.
Print all permutations of numbers from to in lexicographical order. Print each permutation on a separate line. Do not print spaces between numbers on a line.
Example 1