Salesforce interview question

Asked 2d dynamic programming question.