Cppreference Next Permutation Leetcode Solnix