Pregunta de entrevista de CGI

problems based on dynamic programming