✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Let S be a string of length
n . In 1-based indexing, if
Z[k] > 0 , for
2\le k \le n then
S[k\dots k+Z[k] - 1] = S[1\dots Z[k]].