Probably The Cleanest Looking Solution (2 Lines only!)🧼🫧
\nclass Solution {\n    public boolean canBeEqual(String s1, String s2) {\n        return (\n            f(s1.charAt(0), s1.charAt(2)).equals(f(s2.charAt(0), s2
```\nclass Solution {\n    public boolean canBeEqual(String s1, String s2) {\n        return (\n            f(s1.charAt(0), s1.charAt(2)).equals(f(s2.charAt(0), s2.charAt(2))) \n                && \n            f(s1.charAt(1), s1.charAt(3)).equals(f(s2.charAt(1), s2.charAt(3)))\n        );\n    }\n    String f(char a, char b){ return a<b? a+""+b: b+""+a; }\n}\n```
['String', 'Java']