Leetcode 3394. Check if Grid can be Cut into Sections | Hello Interview