use best solution with parent pointer to find Lowest Common Pointer