public TreeNode buildTree(int[] inorder, int[] postorder) {
        if(inorder.length == 0 && postorder.length == 0) return null;
        TreeNode node = buildTreeRec(inorder, postorder, 0, inorder.length-1, 0, postorder.length-1);
        return node;
    }