Nearest Common Ancestors

POJ - 1330