


The first line of input contains an integer ‘T’ denoting the number of test cases.
The first line of each test case consists of a single integer ‘N’ denoting the size of the string.
The next line consists of ‘N’ length string consisting of only ‘a’,’c’,’g’ and ’t’.
For each test case, return all possible sub-strings of size 10 that occurs more than one time. You may return the substrings in any order.
1 <= ’T’ <= 50
1 <= ’N’ <= 5* 10^3
s[i] = {‘a’,‘c’,’g’ ,’t’ }
Time Limit: 1 sec
You do not need to print anything, it has already been taken care of. Just implement the given function.
The main idea is to store the count of all substrings.