[Python] Straight Forward Solution
\nclass Solution:\n    def areAlmostEqual(self, s1: str, s2: str) -> bool:\n        #check if both strings have same elements if not return false\n        if so
```\nclass Solution:\n    def areAlmostEqual(self, s1: str, s2: str) -> bool:\n        #check if both strings have same elements if not return false\n        if sorted(s1) != sorted(s2):\n            return False\n        \n        #return true if there is no difference (strings are already equal) or there is difference of two which can be swaped\n        return sum([1 if s1[i] != s2[i] else 0 for i in range(len(s1))]) in [0, 2]\n        \n        \n```
[]