Domanda di colloquio di Google

Algorithm question about binary trees