Question d’entretien chez Qualtrics

Dynamic programming question similar to the "Climbing Steps" problem.