Pergunta de entrevista da empresa Microsoft

HackerRank Medium question. Solved it with backtracking and memoization.