My guess is that you are asked to find a permutation p of 362451 with this property: p > 362451 in lexicographic order, but there is no other permutation p' such that p > p' > 362451.

Note that lexicographic order on numberswith the same number of digitscoincides with the regular numerical order.