Sponsored
Use these hints if you're stuck. Try solving on your own first.
Take every substring of s, change a character, and see how many substrings of t match that substring.
Use a Trie to store all substrings of t as a dictionary.
Solve with full IDE support and test cases