Microsoft interview question

Write a program for lowest common ancestor problem