Pergunta de entrevista da empresa Grab

Find max sum in any 2 leaf nodes in a tree.