Cppreference Next Permutation In Leetcode Problem