Next Lexicographic Permutation — Coding Problem — CareerVerse