- Create two arrays of 26 Characters
- Count the frequency of characters in the first string
- Count the frequency of characters in the second string
- Calculate the difference in character frequencies
- Return the difference Value
Example 1:
Input: s = "leetcode", t = "coats"
Output: 7
Example 2:
Input: s = "night", t = "thing"
Output: 0