Sponsored
Solve with full IDE support and test cases
Use these hints if you're stuck. Try solving on your own first.
For each character, find the indices of its occurrences in string <code>s</code> then in string <code>t</code>.