Rosetta Problems

Queries on tree 3

https://marisaoj.com/problem/391