Nearest Exit from Entrance in Maze
Implement `solve` for **Nearest Exit from Entrance in Maze**. Return the required output for the provided arguments.
Implement `solve` for **Nearest Exit from Entrance in Maze**. Return the required output for the provided arguments.