0(1) time || 0(1) space
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       StringBuilder x= new StringBuilder(s1);\n       char a=s1.charAt(0);\n       char b= s1.charAt(1);\n       if(s1.charAt(0)!=s2.charAt(0)){\n       x.setCharAt(0,s1.charAt(2));\n       x.setCharAt(2,a);}\n       if(s1.charAt(1)!=s2.charAt(1)){\n       x.setCharAt(1,s1.charAt(3));\n       x.setCharAt(3,b);}\n       return (s2.equals(x.toString()));\n\n    }\n}\n```
['Java']