Pregunta de entrevista de Wish

Algorithm problem about binary trees