Fewest steps through a maze
A maze is a non-empty list of equal-length strings where "." is open and "#" is a wall. You start at the top-left cell and want the bottom-right cell, moving one step up, down, left or right through open cells. Return the fewest steps needed, or -1 if the exit can't be reached (also when the start is a wall).
Besides the tests, one large input (a 43 × 41 maze) with a ~200 ms limit (scaled to your device's speed): brute force won't pass.
Examples
fewest_steps(["..",".."])→2fewest_steps([".#.",".#.","..."])→4fewest_steps([".#","#."])→-1