InterviewBit Problems   Burn a Tree : Unsolved

About the Burn a Tree : Unsolved category (1)
Can anyone guide me what am I doing wrong here (1)
Editorial solution is wrong for java solution (1)
Does the tree start burning from the given leaf node or we can start burning from anywhere? (3)
Definitely more points (1)
More Points should be alloted to this problem (1)
B not leaf in test case. refer before wasting time (1)