Pergunta de entrevista da empresa Microsoft

HackerRank Hard question. Solved it with dynamic programming.