Farthest Nodes in a Tree (II)

LightOJ - 1257