:D
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```cpp []\nclass Solution {\npublic:\n    bool canBeEqual(string s1, string s2) {\n        if(s1==s2)\n          return true;\n\n        string m=s1;\n        char temp=m[1];\n        m[1]=m[3];\n        m[3]=temp;\n\n        if(m==s2)\n          return true;\n\n        m=s1;\n\n        temp=m[0];\n        m[0]=m[2];\n        m[2]=temp;\n\n        if(m==s2)\n          return true;\n\n        m=s1;\n\n         temp=m[1];\n        m[1]=m[3];\n        m[3]=temp;\n\n        temp=m[0];\n        m[0]=m[2];\n        m[2]=temp;\n\n        if(m==s2)\n          return true;\n        return false;\n\n\n\n\n\n\n\n\n        \n    }\n};\n```
['C++']