Next Permutation Leetcode Solution 33166