Amazon interview question

BFS and inorder, preorder, postorder traversal