Wix Interview Question

Lowest Common Ancestor (LCA) problem.