Python | Simple Solution
\n# Code\n\nclass Solution:\n    def canBeEqual(self, s1: str, s2: str) -> bool:\n        return sorted(s1[::2]) == sorted(s2[::2]) and sorted(s1[1::2]) == sort
\n# Code\n```\nclass Solution:\n    def canBeEqual(self, s1: str, s2: str) -> bool:\n        return sorted(s1[::2]) == sorted(s2[::2]) and sorted(s1[1::2]) == sorted(s2[1::2])\n        \n```
['Python3']