Easy brute Force Solution
\n\n# Code\n\nclass Solution {\npublic:\n   \n    bool canBeEqual(string s1, string s2) {\n   if(s1.size()!=s2.size()){\n       return false;\n   }else{\n      
\n\n# Code\n```\nclass Solution {\npublic:\n   \n    bool canBeEqual(string s1, string s2) {\n   if(s1.size()!=s2.size()){\n       return false;\n   }else{\n       int i=0;\n       while(i<s1.size()){\n       if(s1[i]==s2[i]){\n           i++;\n       }else {\n           swap(s1[i],s1[i+2]);\n           if(s1[i]!=s2[i]){\n               return false;\n           }\n           i++;\n       }\n}\n       \n   }\n        return true;\n    }\n};\n```
['C++']