Pregunta de entrevista de Komprise

Question related to binary tree in coding round.