Domanda di colloquio di Microsoft

Write a program for lowest common ancestor problem