Given a word S and a text C. Return the count of the occurences of anagrams of the word in the text.
The first line of input contains an integer T denoting the number of test cases. The description of T test cases follows. The first line of each test case contains a text S consisting of only lowercase characters.
The second line contains a word consisting of only lowercase characters.
Print the count of the occurences of anagrams of the word C in the text S.
1 <= T <= 50
1 <= |S| <= |C| <= 50
for, orf and ofr appears in the first test case and hence answer is 3.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.