Karthik's submission of Tree Game | CodeChef