Sponsored
Use these hints if you're stuck. Try solving on your own first.
For each string of the set, look for matches and store those matches indices.
Solve with full IDE support and test cases