Store all characters in the vector and sort the vector to find the character with highest frequency
v = [ ] ; NEW_LINE for key , value in m . items ( ) : NEW_LINE INDENT v . append ( [ value , key ] ) ; NEW_LINE DEDENT v . sort ( ) ; NEW_LINE