Probelm in passing the test case

As per the given sample test case by code is givingperfect output.but test case 1 and 3 are not passing

hi @Jainish-Patel-1007094602980100 you passed the same tree in both arguments
image