LCA Implementation Problem


Please tell where I am doing mistake