Doubt in implementation

How to take input in this question

hello @hemantomer1
Here Input is taken in pre-order (root,left,right) fashion here the first value is our root_value and for every node true tells us the node exist and the next value is the node value and false means that the node is NULL

refer this ->
image