Operations on a tree

Problem Name:
Operations on a tree
Site:HackerEarth
Links:
Tags:
Problem setters: