Python3 Easy to Understand.
\n\n# Code\npython3 []\nclass Solution:\n    def canBeEqual(self, s1: str, s2: str) -> bool:\n        if s1==s2:\n            return True\n        \n        dif
\n\n# Code\n```python3 []\nclass Solution:\n    def canBeEqual(self, s1: str, s2: str) -> bool:\n        if s1==s2:\n            return True\n        \n        dif=list(set(s1)-set(s2))\n        if len(dif)>0:\n            return False\n        \n        if s1[0]!=s2[0] and s1[0]!=s2[2]:\n            return False\n        if s1[1]!=s2[1] and s1[1]!=s2[3]:\n            return False\n        if s2[0]!=s1[0] and s2[0]!=s1[2]:\n            return False\n        if s2[1]!=s1[1] and s2[1]!=s1[3]:\n            return False\n        if s1[:2]==s2[:2] and s1[-2:]!=s2[-2:]:\n            return False\n        return True\n        \n```
['Python3']