<p>You are given a string <code>s</code> consisting only of characters <code>'a'</code> and <code>'b'</code>.</p>
<p>You can delete any number of characters in <code>s</code> to make <code>s</code><strong>balanced</strong>. <code>s</code> is <strong>balanced</strong> if there is no pair of indices <code>(i,j)</code> such that <code>i < j</code> and <code>s[i] = 'b'</code> and <code>s[j]= 'a'</code>.</p>
<p>Return <em>the <strong>minimum</strong> number of deletions needed to make </em><code>s</code><em><strong>balanced</strong></em>.</p>