Structurally identical binary tree


one test case is failing

Mehak, your code is not producing correct output for following test cases as,
10 true 20 true 40 false false true 50 false false true 30 true 60 false false true 73 false false
10 true 21 true 40 false false true 50 false false true 30 true 60 false false true 73 false false
Expected output : true
Your output : false

Kindly modify your logic accordingly…