Nearest Exit from Entrance in Maze

You are given a rectangular maze as an array of rows, where each cell is either "+" (a wall) or "." (open floor), plus an entrance cell [row, col] that is guaranteed to be open. In one move you may step to an orthogonally adjacent open cell.

An exit is any open cell on the border of the maze that is not the entrance. Return the number of moves in the shortest path from the entrance to any exit, or -1 when no exit is reachable.

Examples
Input: [[["+"]],[0,0]]
Output: -1
Hints

Nearest Exit from Entrance in Maze

You are given a rectangular maze as an array of rows, where each cell is either `"+"` (a wall) or `"."` (open floor), plus an `entrance` cell `[row, col]` that is guaranteed to be open. In one move you may step to an orthogonally adjacent open cell.