HCLTech Interview Question

traverse a tree and find the quick path