(pre: list, post: list, size: int)
return print_inorder(root)
Main Function that will construct the full binary tree from given preorder
        and postorder array.
Main Function that will construct the full binary tree from given preorder
        and postorder array.
Main Function that will construct the full binary tree from given preorder and postorder array .
def construct_tree(pre: list, post: list, size: int):
    """
        Main Function that will construct the full binary tree from given preorder
        and postorder array.
    """

    global pre_index
    root = construct_tree_util(pre, post, 0, size-1, size)

    return print_inorder(root)
def construct_tree ( pre : list , post : list , size : int ) : global pre_index root = construct_tree_util ( pre , post , 0 , size - 1 , size ) return print_inorder ( root )