Google interview question

Dynamic programming question with a 2d array