Goldman Sachs Interview Question

Shortest path in 2D matrix