Next Permutation Leetcode Solution 19