Google Interview Question

Common ancestor of 2 different leaf nodes