BETA CAE Systems Interview Question

Implement a tree structure.