Google interview question

Coding questions on tree structures