Amazon interview question

Maximum distance between any 2 nodes in a given tree.