<p>You are given an <code>m x n</code> binary matrix <code>mat</code> of <code>1</code>'s (representing soldiers) and <code>0</code>'s (representing civilians). The soldiers are positioned <strong>in front</strong> of the civilians. That is, all the <code>1</code>'s will appear to the <strong>left</strong> of all the <code>0</code>'s in each row.</p>
<p>A row <code>i</code> is <strong>weaker</strong> than a row <code>j</code> if one of the following is true:</p>
<ul>
<li>The number of soldiers in row <code>i</code> is less than the number of soldiers in row <code>j</code>.</li>
<li>Both rows have the same number of soldiers and <code>i < j</code>.</li>
</ul>
<p>Return <em>the indices of the </em><code>k</code><em><strong>weakest</strong> rows in the matrix ordered from weakest to strongest</em>.</p>