Kotlin Straightforward Approach
Code
# Code
```kotlin []
class Solution {
    fun canBeEqual(s1: String, s2: String): Boolean {
        if (s1 == s2) return true
        val (a, b, c, d) = s1.toCharArray()
        val (w, x, y, z) = s2.toCharArray()
        return (a == y && w == c && b == x && d == z) 
            || (b == z && x == d && a == w && c == y)
            || (a == y && w == c && b == z && x == d)
    } 
}

```
['Kotlin']