
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Count the frequency of characters of each string.
Loop over all characters if the frequency of a character in t is less than the frequency of the same character in s then add the difference between the frequencies to the answer.