Build Tree from level Order Traversal

Could anyone check that my code is correct or not for building the binary tree when level order traversal is given.

code’s link :- https://ide.codingblocks.com/s/64293

code is working fine, you can check it by printing the tree