Topic: Tree Problem / Level: advanced

Problem: Write a program to find the longest path in a binary tree that starts from any node based on properties.

Run the code to see the output here...