Counting frequency of characters in each string .
for i in range ( l ) : NEW_LINE INDENT countx [ ord ( x [ i ] ) - ord ( ' A ' ) ] += 1 NEW_LINE county [ ord ( y [ i ] ) - ord ( ' A ' ) ] += 1 NEW_LINE DEDENT