Solve 10377 - Maze Traversal.