title: Find the most frequent occurring character in a string
body: <p>I'm trying to find the most <strong>succinct</strong>, <strong>short</strong>, <strong>concise</strong> way to express the algorithm to find the <strong>most frequent occurring character in a string</strong>. </p>
  
  <p>My algorithm is as follows:</p>
  
  <ol>
  <li>Go through each <code>character</code> of the string</li>
  <li>For each <code>character</code>, use the <code>hashValue</code> to construct a hash table with a property indicating the # of occurrences of the particular hash key</li>
  <li>Go through the hash table and find the greatest value and un hash the key back to the a <code>character</code></li>
  </ol>
  
  <p>Here's my solution. I've hit a roadblock near the end; I have correctly located the greatest occurring <code>hashValue</code> via that algorithm, but I do not know how to map the hash key back to a character.</p>
  
  <p><a href="https://i.stack.imgur.com/UZopF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UZopF.png" alt="enter image description here"></a></p>