SAP Ariba interview question

Find least common parent in binary tree