Lowest Common Ancestor (LCA) Problem | Eulerian path method