Pregunta de entrevista de Meta

Had a Binary tree question