Binary tree vertical order traversal

https://ideone.com/nXoRyh

not getting the desired output.Code is for the vertical order traversal of a binary tree

Hi Yash, read the question properly. The input format states that the given input is level order traversal of the tree. You are taking input as preorder.