100% BEATS || MOST SIMPLE || C++
Code\n\nclass Solution {\npublic:\n    bool canBeEqual(string s1, string s2) {\n        if(s1[0]<s1[2])swap(s1[0],s1[2]);\n        if(s1[1]<s1[3])swap(s1[1],s1[
# Code\n```\nclass Solution {\npublic:\n    bool canBeEqual(string s1, string s2) {\n        if(s1[0]<s1[2])swap(s1[0],s1[2]);\n        if(s1[1]<s1[3])swap(s1[1],s1[3]);\n        if(s2[0]<s2[2])swap(s2[0],s2[2]);\n        if(s2[1]<s2[3])swap(s2[1],s2[3]);\n        cout<<s1<<" "<<s2<<endl;\n        return (s1==s2);\n    }\n};\n```
['C++']