for each character , where character is obtained by ( i + ' a ' ) check whether it is the maximum character so far and accodingly update 'result
' NEW_LINE INDENT for i in range ( 26 ) : NEW_LINE INDENT if ( max < freq [ i ] ) : NEW_LINE INDENT max = freq [ i ] NEW_LINE result = chr ( ord ( ' a ' ) + i ) NEW_LINE DEDENT DEDENT DEDENT