class Solution {
public:
    bool arrayStringsAreEqual(vector<string>& word1, vector<string>& word2) {
        std::string s1 = "", s2 = "";
        for (const auto& word : word1) {
            s1 += word;
        }
        for (const auto& word : word2) {
            s2 += word;
        }
        return s1 == s2;
    }
};

Check If Two String Arrays are Equivalent
Check If Two String Arrays are Equivalent
