LeetCode
Repeated String Match
Click
here
for an explanation.