EASY TO UNDERSTAND C++ SOLUTION
\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) \n    {\n        if(rec2[1] >= rec1[3] || rec1[1] >= rec2[3]) // 
```\nclass Solution {\npublic:\n    bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) \n    {\n        if(rec2[1] >= rec1[3] || rec1[1] >= rec2[3]) // for y axis\n        {\n            return false;\n        }\n        if(rec2[0] >= rec1[2] || rec1[0] >= rec2[2]) // for x axis\n        {\n            return false;\n        }\n        return true;\n    }\n    \n};\n```
['C']