Microsoft Interview Question

Write a program for lowest common ancestor problem