Coding Ninjas interview question

Diameter of tree (DSA problem)