easy java 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```java []\nclass Solution {\n    public boolean canBeEqual(String s1, String s2) {\n        char[] array1 = s1.toCharArray();\n        char[] array2 = s2.toCharArray();\n        for (int i = 0; i < 2; i++) {\n            if (array1[i] != array2[i]) {\n                    char c = array1[i];\n                    array1[i] = array1[i+2];\n                    array1[i+2] = c;\n            }\n        }\n\n        return Arrays.equals(array1,array2);\n        \n    }\n}\n```
['Java']