Ming-Tian Yang's submission of Yet Another Tree Problem | CodeChef