Pergunta de entrevista da empresa Axon

Given two nodes in a tree, how can you find their common ancestor node.