aman agarwal's submission of Tree Query | CodeChef