DoorDash Interview Question

Find the longest leaf to leaf distance in a tree