public class Q049A_Construct_Full_Binary_Tree_from_given_preorder_and_postorder_traversals {
public static void main(String[] args) {
int[] pre = {1, 2, 4, 8, 9, 5, 3, 6, 7};
int[] post = {8, 9, 4, 5, 2, 6, 7, 3, 1};
TreeNode root = construct(pre, post, 9);
root.print();
}