Cppreference Next Permutation In Leetcode Sql