Domanda di colloquio di Blackhawk Network

LC hard question about binary tree