Pregunta de entrevista de OpenAI

OA has dynamic programming problems.