For a given natural number , derive all permutations of integers from to to numbers in lexicographic order.
Two natural numbers and ).
Derive all permutations of integers from to to numbers in lexicographic order. Each permutation should be displayed on a separate line.