
Given n cuboids where the dimensions of the i ^th cuboid is cuboids[i] = [width _i , length _i , height _i ] ( 0-indexed ). Choose a subset of cuboids and place them on each other.
You can place cuboid i on cuboid j if width _i <= width _j and length _i <= length _j and height _i <= height _j . You can rearrange any cuboid's dimensions by rotating it to put it on another cuboid.
Return the maximum height of the stacked cuboids .
n == cuboids.length1 <= n <= 1001 <= width _i , length _i , height _i <= 100