Blue Yonder Interview Question

Finding the common parent of Binary Search Tree