Leetcode Permutation Sequence Gfg Practice Python