Solved binary tree level order traversal problem