2839. Check if Strings Can be Made Equal W..., Time complexity: O(1), Space complexity: O(N)
IntuitionApproachComplexity
Time complexity: O(1)

Space complexity: O(N)
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity: O(1)
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity: O(N)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def canBeEqual(self, s1, s2) -> bool:
        s1_list = list(s1)
        s2_list = list(s2)

        if (s1_list == s2_list):
            return True

        s1_list[0], s1_list[2] = s1_list[2], s1_list[0]
        if (s1_list == s2_list):
            return True

        s1_list[1], s1_list[3] = s1_list[3], s1_list[1]
        if (s1_list == s2_list):
            return True

        s1_list[0], s1_list[2] = s1_list[2], s1_list[0]
        if (s1_list == s2_list):
            return True

        return False
```
['Python3']