Function to return the length of the longest sub - str1ing of consecutive characters from str1
def largestSubstr1 ( str1 , n ) : NEW_LINE INDENT Len = 0 NEW_LINE i = 0 NEW_LINE while ( i < n ) : NEW_LINE DEDENT