Pergunta de entrevista da empresa Genesys

Coding question - Largest subsequence sum in a tree for a given path.