python leetcode 46. Permutations

NoSuchKey