Given a word and a text, return the count of occurrences of anagrams of the word within the text.
{
"txt": "forxxorfxdofr",
"pat": "for"
}3{
"txt": "aabaabaa",
"pat": "aaba"
}4{
"txt": "cbaebabacd",
"pat": "abc"
}2Sign in to Run Code and Submit