Question d’entretien chez Infosys

Dynamic programming question medium level leetcode