title: Max occurrences of consecutive character in a string.(Ruby)
body: <p>How can I find out the max occurrences of consecutive character in a string and return the result as an array in sorted order.</p>
  
  <p>Example:</p>
  
  <pre><code>    input = “abcccdddeee”
      output = [“c”,”d”,”e”]
  </code></pre>