Lowsest common ancestor problem


i am trying to print the lca of two nodes but it is printing address instead of the lca node .What mistake i am making in my code