Tree: Depth-First Search - Path Sum III (Any Path)
Suppose the problem is modified so that paths can move both upwards and downwards (i.e., any connected path in the tree, not necessarily downward). Which approach is best suited to solve this variant efficiently?
