Pregunta de entrevista de Google

Algorithm question about binary trees