Pergunta de entrevista da empresa Microsoft

Write a program for lowest common ancestor problem