i am not able to take input
Is Balanced (Binary Tree)
Here, true means there is a child and false means no child.
10 true 20 true 40 false false true 50 false false true 30 true 60 false false true 73 false false
This input implies that 10 is root node, true means that there is left child, whose value is 20, then again true means that 40 is left child of 20 , and then two consecutive false means that it is leaf node, then true means that 50 is right child of 20. I hope you will now understand the input.