Sponsored
Use these hints if you're stuck. Try solving on your own first.
Concatenate all strings in the first array into a single string in the given order, the same for the second array.
Both arrays represent the same string if and only if the generated strings are the same.