Not able to understants the problem.......what these multiple false followed by true signifies

https://hack.codingblocks.com/contests/c/241/474

Hey Gaurav, input is the the preorder traversal for the binary tree
For eg. this input is preorder traversal of the tree given below:

10 true 20 true 40 false false true 50 false false false

             10
            /  
           20   
          /  \
         40   50

40 false false true 50
what does it means then

explain this query please

Take it as a whole 10 true 20 true 40 false false true 50 false false false

it states that
10 true 20 => 10 has left child 20 then
20 true 40 => 20 has left child 40 then
40 false false => 40 has no left child and no right child
true 50 => 20 has right child 50
50 false false => 50 has no left child and no right child
false => 10 has no right child

Its just the preorder traversal of a binary tree

thank you…