<p>Given <code>n</code><code>cuboids</code> where the dimensions of the <code>i<sup>th</sup></code> cuboid is <code>cuboids[i] = [width<sub>i</sub>, length<sub>i</sub>, height<sub>i</sub>]</code> (<strong>0-indexed</strong>). Choose a <strong>subset</strong> of <code>cuboids</code> and place them on each other.</p>
<p>You can place cuboid <code>i</code> on cuboid <code>j</code> if <code>width<sub>i</sub><= width<sub>j</sub></code> and <code>length<sub>i</sub><= length<sub>j</sub></code> and <code>height<sub>i</sub><= height<sub>j</sub></code>. You can rearrange any cuboid's dimensions by rotating it to put it on another cuboid.</p>
<p>Return <em>the <strong>maximum height</strong> of the stacked</em><code>cuboids</code>.</p>