Check if two strings can be made equal with operations - python3 solution
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```python3 []\nclass Solution:\n    def canBeEqual(self, s1: str, s2: str) -> bool:\n        \n        res1, res2 = [], []\n        x, y = s1, s2\n\n        res1.append(s1)\n        res2.append(s2)\n\n        s1 = [i for i in s1]\n        s2 = [i for i in s2]\n\n        i,j = 0,2\n        l,r = 0,2\n\n        while j < len(s1) or r < len(s2):\n            s1[i], s1[j] = s1[j], s1[i]\n            res1.append(\'\'.join(s1))\n            s1 = [i for i in s1]\n\n            s2[l], s2[r] = s2[r], s2[l]\n            res2.append(\'\'.join(s2))\n            s2 = [i for i in s2]\n\n            i,j = i + 1, j + 1\n            l,r = l + 1, r + 1\n        \n        for i in res1:\n            if i in res2:\n                return True\n        \n        return False\n```
['Python3']