New Solution
IntuitionApproachComplexity
Time complexity:

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

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

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

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

# Code
```java []
class Solution {
    public boolean canBeEqual(String s1, String s2) {
        if(s1.length()!=4 ||s2.length()!=4) {
            return false;
        }
        char[] Es1= {s1.charAt(0),s1.charAt(2)};
        char[] Os1={s1.charAt(1),s1.charAt(3) };
        char[] Es2= {s2.charAt(0),s2.charAt(2)};
        char[] Os2={s2.charAt(1),s2.charAt(3) };
        
        Arrays.sort(Es1);
        Arrays.sort(Es2);
        Arrays.sort(Os1);
        Arrays.sort(Os2);

        return Arrays.equals(Es1,Es2) && Arrays.equals(Os1,Os2);
    }
}
```
['Java']