Minimum Steps to Make Two Strings Anagrams
s and t have the same length. In one step you replace any one character of t by any other letter. Return the fewest steps needed to make t an anagram of s.
Example 1
s "bab"
t "aba"
returns 1
Change one a in t into b.
Example 2
s "abc"
t "abc"
returns 0
Already an anagram.
Constraints
1 <= len(s) <= 100len(t) == len(s)- Lowercase letters only
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.