1. ## Permutaion of Lexicographic

What is the next largest permutation in lexicographic order after 362451 ?

I am clueless to even understand question.