You are given an array $$$a$$$ of $$$n$$$ elements and an integer $$$x$$$. You also have a variable $$$v$$$ which is initially equal to $$$0$$$.
You will perform exactly one operation for each element of the array, and the operations must be applied in the order of the array (i.e., from $$$a_1$$$ to $$$a_n$$$). For each $$$i$$$ from $$$1$$$ to $$$n$$$, you can choose one of the following operations:
You must use the second operation (AND) at least $$$x$$$ times throughout the process.
Determine the maximum possible value of $$$v$$$ at the end.
The first line of input contains one integer $$$t$$$ $$$(1$$$ $$$\le$$$ $$$t$$$ $$$\le$$$ $$$1000)$$$, the number of test cases.
The first line of each test case contains two integers $$$n$$$ and $$$x$$$ $$$(1$$$ $$$\le$$$ $$$x$$$ $$$\le$$$ $$$n$$$ $$$\le$$$ $$$10^5)$$$.
The second line of each test case contains $$$n$$$ integers $$$a_1,a_2,..,a_n$$$ $$$(0 \le a_i \le 10^5)$$$, the elements of the array.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.
For each test case, print in a separate line the maximum value possible for $$$v$$$ after the $$$n$$$ operations.
32 12 23 20 3 24 11 0 2 3
2 2 3