Yerzhan Utkelbayev's submission of Tree | CodeChef