New Corp Interview Question

The question about a tree.