Kantar interview question

Level order traversal of binary tree Friends problem.