Domanda di colloquio di Salesforce

Asked 2d dynamic programming question.