You are given a sequence of non-negative integers. Your task is to find its MEX.
The MEX (Minimum EXcluded number) of a sequence of non-negative integers is defined as the smallest non-negative integer that does not appear in the sequence.
The first line contains a single integer $$$T$$$ — the number of test cases.
Each test case consists of two lines:
$$$1 \leq T \leq 10^{5}$$$, $$$1 \leq N \leq 10^{5}$$$, $$$0 \leq a_i \leq 10^{9}$$$, $$$\sum N \text{ across all test cases} \leq 10^{6}$$$
For each test case, print a single integer — the MEX of the given sequence.
2 4 0 1 2 4 5 0 2 3 1 4
3 5
| Name |
|---|


