Nearest Exit from Entrance in Maze

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

Examples
Input: [[["+","+",".","+"],[".",".",".","+"],["+","+","+","."]],[1,2]]
Output: 1
Hints

Nearest Exit from Entrance in Maze

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