Texas Instruments Interview Question

DSA - LCA (least common ancestor)