XY's submission of Trees and Degrees | CodeChef