Absolute tree

Problem Name:
Absolute tree
Site:HackerEarth
Links:
Tags:
Problem setters: