Google DeepMind Interview Question

Coding question: Simple tree base problem with tree transversal