Microsoft interview question

Least Common Ancestor (simple solution).