
1. All the elements of the array strictly smaller than ‘a’ should come first.
2. All the elements of the array between the range [a, b] should come next.
3. All the elements of the array strictly greater than ‘b’ should come last.
The first line of the input contains an integer T denoting the number of test cases.
The first line of each test case contains three space-separated integers N, A, B, denoting the size of the array, the first element of the range, and the second element of the range [a, b] respectively.
The second line of each test case contains N space-separated integers representing the elements of the array.
The output of the test case will be “Correct” if you have modified the array correctly else it will be “Incorrect” without quotes.
The output of each test case will be printed in a separate line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 5
1 <= N <= 5000
0 <= arr[i] <= 10^9
0 <= a, b <= 10^9
The algorithm will be as follows: