Find path between two nodes on a tree