Next Permutation Problem Leetcode Python Coding