Closest leaf to root in a binary tree