Lowest Common Ancestor (LCA) Problem | Source Code