Beginner friendly, beats 100% runtimes
\n# Code\n\nfunction areAlmostEqual(s1: string, s2: string): boolean {\n     if(s1 === s2){\n        return true;\n    }\n    \n    let sortedS1: string = s1.sp
\n# Code\n```\nfunction areAlmostEqual(s1: string, s2: string): boolean {\n     if(s1 === s2){\n        return true;\n    }\n    \n    let sortedS1: string = s1.split(\'\').sort().join();\n    let sortedS2: string = s2.split(\'\').sort().join();\n\n    if(sortedS1 !== sortedS2){\n        return false;\n    }\n    \n    let counter = 0;\n    \n    for(let i = 0; i < s1.length; i++){\n        if(s1[i]!== s2[i]){\n            counter ++;\n        }\n        if(counter > 2){\n            return false;\n        }\n    }\n    return true;\n    \n};\n```
['TypeScript', 'JavaScript']