Pergunta de entrevista da empresa Komprise

Question related to binary tree in coding round.