

Consider the sequence of customers as [ 1, 2, 3, 2, 3, 1 ] for N = 3 and K = 2.
The procedure takes place as follows :
1) At the start, Customer 1 comes and finds an available computer and starts using it and now the number of available computers is reduced by 1.
2) Customer 2 comes and he is also able to find an available computer and he starts using the computer. Now all the computers are unavailable.
3) Customer 3 comes and goes back immediately as there are no computers available currently.
4) Customer 2 leaves the cafe making 1 computer available.
5) As customer 3 has already left no new computers are made available.
6) Customer 1 leaves the cafe and all the computers are again available.
As only Customer 3 was unable to find any available computers therefore the answer is 1 for this case.
The first line of the input contains an integer 'T', denoting the number of test cases.
The first line of each test case contains two space-separated integers 'N' and 'K' denoting the number of customers and the number of computers available in the cafe respectively.
The second line of each test case '2*N' space-separated integers denoting the array 'ARR'.
For each test case print the number of customers who left the cafe without using a computer. Print the output of each test case in a new line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 10
1 <= N <= 10^5
1 <= K <= 10^5
1 <= ARR[i] <= N
Time Limit: 1 sec
The idea is to store the status of each customer in an extra array and use two variables availableComputers and customersWhoLeft that stores the number of available computers and the number of customers who left because of no available computers respectively.
The status of a customer can have 3 possible values.