Choose the current character
if ( ord ( s [ pos ] ) - ord ( ' a ' ) + 1 != prev ) : NEW_LINE INDENT val = max ( val , 1 + calculate ( pos + 1 , ord ( s [ pos ] ) - ord ( ' a ' ) + 1 , s ) ) ; NEW_LINE DEDENT