Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to find the longest simple path in a tree using DFS.

Run the code to see the output here...