LinkedIn interview question

Lowest Common Ancestor (Tree question)