Easy java solution for beginners
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```\nclass Solution {\n    public boolean canBeEqual(String s1, String s2) {\n        \n        if(s1.charAt(0) != s2.charAt(0)){\n            if(s1.charAt(0) != s2.charAt(2) ){\n                return false;\n            }\n        }\n        \n        if(s1.charAt(1) != s2.charAt(1)){\n            if(s1.charAt(1) != s2.charAt(3) ){\n                return false;\n            }\n        }\n        \n         if(s1.charAt(2) != s2.charAt(2)){\n            if(s1.charAt(2) != s2.charAt(0) ){\n                return false;\n            }\n        }\n        \n        if(s1.charAt(3) != s2.charAt(3)){\n            if(s1.charAt(3) != s2.charAt(1) ){\n                return false;\n            }\n        }\n        return true;\n    }\n}\n```
['Java']