Pregunta de entrevista de Amdex

they questions from Dynamic Programming