Pergunta de entrevista da empresa Apple

Given a 2d array, what is the shortest path from the first row to the last row