Question d’entretien chez Microsoft

Write a program for lowest common ancestor problem