Sponsored
Use these hints if you're stuck. Try solving on your own first.
Calculate the differences between s[i] and t[i].
Use a sliding window to track the longest valid substring.
Solve with full IDE support and test cases