Amazon Interview Question

Maximum distance between any 2 nodes in a given tree.