Tran Xuan Bach's submission of Root the Tree | CodeChef