Domanda di colloquio di Meta

Had a Binary tree question