Mental Model
Find the highest sum of values along any path in a tree, where a path can start and end at any node.
Analogy: Imagine a mountain range where each peak has a height. You want to find the highest possible trail that can go up and down connecting any peaks, not necessarily starting at the base or ending at the top.
1
/ \
2 3
/ \
4 5
Each number is a node value. Paths can go up and down but cannot revisit nodes.