Pregunta de entrevista de Microsoft

Write a program for lowest common ancestor problem