easy to understand JS
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/**\n * @param {string} s1\n * @param {string} s2\n * @return {boolean}\n */\nvar canBeEqual = function(s1, s2) {\n    if (s1 == s2) return true;\n\n    let arr = s1.split(\'\');\n\n    [arr[1], arr[3]] = [arr[3], arr[1]];\n    if (arr.join(\'\') == s2) return true;\n\n    [arr[0], arr[2]] = [arr[2], arr[0]];\n    if (arr.join(\'\') == s2) return true;\n\n    [arr[1], arr[3]] = [arr[3], arr[1]];\n    if (arr.join(\'\') == s2) return true;\n\n    return false;\n};\n```
['JavaScript']