<p>Given the following details of a matrix with <code>n</code> columns and <code>2</code> rows :</p>
<ul>
<li>The matrix is a binary matrix, which means each element in the matrix can be <code>0</code> or <code>1</code>.</li>
<li>The sum of elements of the 0-th(upper) row is given as <code>upper</code>.</li>
<li>The sum of elements of the 1-st(lower) row is given as <code>lower</code>.</li>
<li>The sum of elements in the i-th column(0-indexed) is <code>colsum[i]</code>, where <code>colsum</code> is given as an integer array with length <code>n</code>.</li>
</ul>
<p>Your task is to reconstruct the matrix with <code>upper</code>, <code>lower</code> and <code>colsum</code>.</p>
<p>Return it as a 2-D integer array.</p>
<p>If there are more than one valid solution, any of them will be accepted.</p>
<p>If no valid solution exists, return an empty 2-D array.</p>