[C++] Simple Solution
Code
# Code
```cpp []
class Solution {
public:
    bool canBeEqual(string s1, string s2) {
        vector<int> v1(26, 0);
        vector<int> v2(26, 0);
        vector<int> v3(26, 0);
        vector<int> v4(26, 0);
        
        for(int i=0; i<s1.size(); i+=2) {
            v1[s1[i]-'a']++;
            v2[s2[i]-'a']++;
        }

        for(int i=1; i<s1.size(); i+=2) {
            v3[s1[i]-'a']++;
            v4[s2[i]-'a']++;
        }

        for(int i=0; i<26; i++) {
            if(v1[i] != v2[i] || v3[i] != v4[i]) {
                return false;
            }
        }
        return true;
    }
};
```
['C++']