Question d’entretien chez Numbrs

Dynamic programming hacker rank question.