codeforces- Shortest path of the king

NoSuchKey