Level order (Zigzag)

sir/mam,
can you please elaborate the input format?

hello @Korou
given input is in preorder format.
where true/false indicates whether left/right subtree exist or not.
if it is tree then recursively build the subtree otherwise return.

check this code snippet
image