DFS. Diameter of a tree.