Yandex Interview Question

Solve the least common ancestor problem