Oracle Interview Question

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