Pergunta de entrevista da empresa Indeed

tree traversal and dynamic programming