Meta Interview Question

How would you implement closest ancestor in a tree?