public TreeNode firstCommonAncestor(TreeNode node1, TreeNode node2){
        if(node1==null || node2==null){
            return null;
        }
        if(node1==node2){
            return node1;
        }
        return null;
    }