add LCA problem part code