Sponsored
Use these hints if you're stuck. Try solving on your own first.
Bruteforce to find if one string is substring of another or use KMP algorithm.
Solve with full IDE support and test cases