How to take input

i’m unable to figure out how to take the input.

@Mudit809 take input for the root node and build a node, and then take a string as input. If the string is “true” then call the function recursively for left subtree. Take another string as input, and if this string is “true” call the function recursively for right subtree. After these steps are done, return the root node.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.