Pergunta de entrevista da empresa Vyond

a coding test question for easy dynamic programming