Rosetta Problems

Shuffled Tree

https://marisaoj.com/problem/658