Next Permutation Problem In Leetcode Playground