JavaScript/TypeScript Solution
Code


# Code
```typescript []
function swap(str:string,i:number,j:number) : string{
    let arr = str.split("");
    [arr[i],arr[j]] = [arr[j],arr[i]];
    return arr.join("");
}

function canBeEqual(s1: string, s2: string): boolean {
    if(s1===s2)
        return true;
    let temp1 = swap(s1,0,2);
    if(temp1===s2)
        return true;
    let temp2 = swap(s1,1,3);
    if(temp2===s2)
        return true;
    
    s1=swap(s1,0,2);
    s1=swap(s1,1,3);
    if(s1===s2)
        return true;
    return false;
};
```
['String', 'TypeScript', 'JavaScript']