Question d’entretien chez Blackhawk Network

LC hard question about binary tree