Pergunta de entrevista da empresa Amazon

Maximum distance between any 2 nodes in a given tree.