Is_Balanced ( Binary Tree )

10 true 20 true 40 false false true 50 false false true 30 true 60 false false true 73 false false
i dont understand the input type?

Basically, true means that you have a child, and false means no child, and thus for input , you will take data and along with that you need to take a string value, so firstly you will take data value, then string is true, means that 20 is the left child, then again true means that 40 is the left child of 20, and then you have false which means that there is no left child , and then again false means that you dont have a right child , you have to follow this approach for building tree