Next Greater Permutation Leetcode Solution 33