# Find The Alphabet In This Random String

s = 'woimoepzbjvxfafpyfpzgmxugjodtemcjcpoxobfgbsmokkmcdpmawcwwaxhqwabzdlplvteszqgtkamxjkswkpnzpxpudxcmigz'


The given variable 's' is a sequence of random alphabets.

What is length of the longest sub-string of 's' in which the letters occur in alphabetical order.

For example, if s = 'azcbobobegghakl', then the longest sub-string in which letters occur in alphabetical order is 'beggh' with length 5.

×