Assumesis a string of lower case characters.
Write a program that prints the longest substring ofsin which the letters occur in alphabetical order. For example, ifs = 'azcbobobegghakl', then your program should print
Longest substring in alphabetical order is: beggh
In the case of ties, print the first substring. For example, ifs = 'abcbcd', then your program should print
Longest substring in alphabetical order is: abc
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here