Binary tree(structurally)

How to give the sample input??

Kunal, you can take two variables, one is data , and other can be string, and if string is true, it mean that child exist, if it is false, it means child doesnt exist, try using this approach to build tree

could u pls send me the code??


I m sharing only the code on how you can build your tree for your reference, kindly try to understand it