#include using namespace std; int main() { int t; cin >> t; while(t--) { int n; cin >> n; vector a(n); for(auto &v : a) cin >> v; sort(a.begin(), a.end()); if(n & 1) { cout << "Alice\n"; } else { bool notpair = 0; for(int i = 0; i < n / 2; i++) { if(a[i * 2] != a[i * 2 + 1]) notpair = 1; } cout << (notpair ? "Alice\n" : "Bob\n"); } } return 0; }