C++ intuitive code
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    bool isIntersecting(vector<int> &a1, vector<int> &a2,vector<int> &b1,vector<int> &b2){\n        int x1 = a1[0],x2 = a2[0],y1 = a1[1],y2 = a2[1];\n        int X1 = b1[0],X2 = b2[0],Y1 = b1[1],Y2 = b2[1];\n        if (x1==x2 || y1==y2 || X1==X2 || Y1==Y2){\n            return false;\n        }\n        //One rectangle is to the left of the another\n        if (x2<X1 || X2<x1) return false;\n        //One rectangle is above the another\n        if (y2<Y1 || Y2<y1) return false;\n\n        return true;\n    }\n    long long largestSquareArea(vector<vector<int>>& bottomLeft, vector<vector<int>>& topRight) {\n        int n = bottomLeft.size();\n        long long ans = 0;\n        for (int i=0;i<n;i++){\n            for (int j=0;j<n;j++){\n                if (i!=j){\n                    if (isIntersecting(bottomLeft[i],topRight[i],bottomLeft[j],topRight[j])){\n                    int up = min(topRight[i][1],topRight[j][1])-max(bottomLeft[i][1],bottomLeft[j][1]);\n                    int right = min(topRight[i][0],topRight[j][0])-max(bottomLeft[i][0],bottomLeft[j][0]);\n                    int left = min(topRight[i][0],topRight[j][0])-max(bottomLeft[i][0],bottomLeft[j][0]);\n                    int bottom = min(topRight[i][1],topRight[j][1])-max(bottomLeft[i][1],bottomLeft[j][1]);\n                    long long sq = min({up,bottom,left,right});\n                    ans = max(ans,sq*sq);\n                    }\n                }\n            }\n        }\n        \n        return ans;\n    }\n};\n```
['C++']