Check all cases
\n\n# Code\n\nbool canBeEqual(string s1, string s2) {\n    string t1 = s1, t2 = s1, t3 = s1;\n    swap(t1[0], t1[2]);\n    swap(t2[1], t2[3]);\n    swap(t3[0], 
\n\n# Code\n```\nbool canBeEqual(string s1, string s2) {\n    string t1 = s1, t2 = s1, t3 = s1;\n    swap(t1[0], t1[2]);\n    swap(t2[1], t2[3]);\n    swap(t3[0], t3[2]);\n    swap(t3[1], t3[3]);\n    if(s1 == s2 || t1 == s2 || t2 == s2 || t3 == s2) return true;\n    return false;\n}\n```\n\n\n---\n\n<b> Here is an article of my last interview experience - A Journey to FAANG Company, I recomand you to go through this to know which all resources I have used & how I cracked interview at Amazon:\nhttps://leetcode.com/discuss/interview-experience/3171859/Journey-to-a-FAANG-Company-Amazon-or-SDE2-(L5)-or-Bangalore-or-Oct-2022-Accepted\n\n---
['C++']