verticalTraversation for binary tree addedwith time complexity O(N).