Meta interview question

Find the first common parent in the tree