Pergunta de entrevista da empresa Microsoft

related to dynamic programming question