Pregunta de entrevista de Autobrains

Build a tree and return its height