Meta interview question

How would you implement closest ancestor in a tree?