Domanda di colloquio di Oracle

to find the maximum sum subtree, basically it was a graph problem