LeetCode:46. Permutations - Python

NoSuchKey