Akamai Interview Question

Given a substring determine the alphabetically maximum substring