leetcode 1345. Jump Game IV(python)

NoSuchKey