Pergunta de entrevista da empresa Amazon

Dynamic programming questions with strict bounds