Publicis Sapient interview question

Inorder, preorder and postorder traversal in tree.