Check if Grid can be Cut into Sections
Two parallel cuts work when the rectangles fall into three separate groups along one axis, found by merging overlapping spans.
Two parallel cuts work when the rectangles fall into three separate groups along one axis, found by merging overlapping spans.