codeforce1365D. Solve The Maze

NoSuchKey