Tree query

Problem Name:
Tree query
Site:HackerEarth
Links:
Tags: