cnt of size 26 to 0, representing the frequency difference for each letter from 'a' to 'z'.word1 and word2.
a. Increment the count for the character in word1 at the current index.
b. Decrement the count for the character in word2 at the same index.cnt array.
a. If any element's absolute value is greater than 3, return false.true.