Amazon interview question

Codding questions leatcode like. Find the shortest path in a 2d array with obstacles.