leetcode 946. Validate Stack Sequences(python)

NoSuchKey