Question d’entretien chez Akamai

Given a substring determine the alphabetically maximum substring