Pergunta de entrevista da empresa Amazon

Find the longest path that exists between any two nodes inside a binary tree given only the root of that binary tree.