Domanda di colloquio di Komprise

Question related to binary tree in coding round.