Pregunta de entrevista de Infor

Leetcode medium that is a dynamic programming question