Rosetta Problems

Lowest Common Ancestor

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1828