Left View of Binary Tree. Help needed in debugging

My code is showing wrong output. Could you please tell where i am going wrong?

problem was in buildtree(), since you are reading input in inorder traversal fashion, whereas it should be read in level order fashion.

modified code is here: https://ide.codingblocks.com/s/209782

thanks