Intuit interview question

Dynamic programming question on matrix