Python beats 96%
```\nclass Solution(object):\n    def areAlmostEqual(self, s1, s2):\n        """\n        :type s1: str\n        :type s2: str\n        :rtype: bool\n        ""
```\nclass Solution(object):\n    def areAlmostEqual(self, s1, s2):\n        """\n        :type s1: str\n        :type s2: str\n        :rtype: bool\n        """\n        count=0\n        for i in range(len(s1)):\n            if s1[i]!=s2[i]:\n                count+=1\n        if (count==2 or count==0) and sorted(s1)==sorted(s2):\n            return True\n        return False
['Python']