The whole idea: the use of the characteristics of the stack, the stack as the first-order process, in order as the stack process, calculate the likelihood of a stack
Preorder: DCAGFEB
Inorder traversal possibilities: CDFGEAB CGAFDEB DCGAFEB ACGDEFB