Increment the global counter for current character of string
if visited [ ord ( s [ i ] [ j ] ) - ord ( ' a ' ) ] == False : NEW_LINE INDENT count [ ord ( s [ i ] [ j ] ) - ord ( ' a ' ) ] += 1 NEW_LINE DEDENT visited [ ord ( s [ i ] [ j ] ) - ord ( ' a ' ) ] = True NEW_LINE