Vitaliy's submission of Tree | CodeChef