Meta interview question

Find common ancestor in tree