Yext Interview Question

Common ancestor in a tree