Count occurrences of anagramsJyothi·FollowJul 24, 2024--ListenSharecount the number of unique letters and the number of each occurrence of the unique letter in ‘c’Do the same for s, if the number of unique letters and each occurrence match, increment the result.Keep iterating throughout ‘s’ and return the result.