Go | Easy to understand | Beats 100%
Approach\nJust trying all of the possible combinations\n\n# Code\n\nfunc swap(s string, i, j int) string {\n\tb := []byte(s)\n\tb[i], b[j] = b[j], b[i]\n\n\tret
# Approach\nJust trying all of the possible combinations\n\n# Code\n```\nfunc swap(s string, i, j int) string {\n\tb := []byte(s)\n\tb[i], b[j] = b[j], b[i]\n\n\treturn string(b)\n}\n\nfunc canBeEqual(s1 string, s2 string) bool {\n\treturn s1 == s2 || \n\t\tswap(s1, 0, 2) == s2 || \n\t\tswap(s1, 1, 3) == s2 || \n\t\tswap(swap(s1, 0, 2), 1, 3) == s2\n}\n\n```
['Go']