Google Interview Question

Coding questions on tree structures