Easy C++ Solution
\n# Code\ncpp []\nclass Solution {\npublic:\n    bool canBeEqual(string s1, string s2) {\n        if(min(s1[0] , s1[2]) != min(s2[0] , s2[2])) return false;\n  
\n# Code\n```cpp []\nclass Solution {\npublic:\n    bool canBeEqual(string s1, string s2) {\n        if(min(s1[0] , s1[2]) != min(s2[0] , s2[2])) return false;\n        if(max(s1[0], s1[2]) != max(s2[0], s2[2])) return false;\n        if(min(s1[1] , s1[3]) != min(s2[1] , s2[3])) return false;\n        if(max(s1[1], s1[3]) != max(s2[1], s2[3])) return false;\n        return true;\n    }\n};\n```
['C++']