Pregunta de entrevista de Google

A basic tree algorithm with different node definition