Next Permutation Problem Leetcode Premium