Next Permutation Problem Leetcode Python Solutions