Given an array perm of length n representing a permutation of the integers from n, return the perm in the lexicographically sorted list of all permutations of n
Constraints:
n perm.length
perm is a permutation of n
Given an array perm of length n representing a permutation of the integers from n, return the perm in the lexicographically sorted list of all permutations of n
Constraints:
n perm.length
perm is a permutation of n