Goldman Sachs interview question

Shortest path in 2D matrix