Permutations Of Strings Leetcode Python