Design an algorithm and write code to find the common ancestor of two nodes in a tree.
Click for Solution
[Insert Code]