You are given a binary string
and an integer . In one operation, you can pick any bit and flip it, i.e turn to or to . Can you make the string a palindrome using exactly operations?
Print YES if this is possible, and NO if it is not.
Input Format
- The first line of input contains one integer , denoting the number of test cases. The description of test cases follows.
- Each test case consists of two lines of input.
- The first line of each test case contains two space-separated integers and , denoting the length of the binary string and the number of operations to be performed.
- The second line contains the binary string .
Output Format
For each test case, print the answer on a new line — YES if the can be made a palindrome using exactly operations, and NO otherwise.
You may print each character of YES and NO in either uppercase or lowercase (for example, yes, yEs, Yes will all be considered identical).
Constraints
- is a binary string, i.e, contains only characters and
Subtasks
Subtask #1 (100 points): Original constraints
Sample Input 1
2
3 0
110
6 1
101100
Sample Output 1
NO
YES
Explanation
Test case : is not a palindrome, and no operations can be performed on it because .
Test case : Flip the first bit to obtain , which is a palindrome.
ConversionConversion EmoticonEmoticon