You are given a string S. A string is called a split string if it follows both the conditions defined below:
Print YES if S is a split string otherwise print NO.
Input Format:
Output Format:
For each test case, print YES if S is a split string otherwise print NO.
Constraints:
1<=T<=10
1<=K<=N<=105
S consists of N lowercase English letters.
First test case:-
It can be proven that the string S cannot follow the two conditions. Hence, the answer is NO.
Second test case:-
It can be divided into ab, ac, and a, the first letter of the strings are the same.
It can be divided into a, ba, and ca, the first letter of the strings are distinct.
Hence, the answer is YES.