LCA Implementation

https://ide.codingblocks.com/s/261767 Please tell where I am doing mistake