A permutation is an ordered arrangement of objects. The lexicographic permutations
of 0, 1, 2 are: 012, 021, 102, 120, 201, 210.
The digits 0 through 9 are arranged in lexicographic order. Given n (0-indexed),
find the n-th permutation of the digits 0-9.