Pergunta de entrevista da empresa Intuit

it was a dynamic programming question