#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while (T--) { int N; cin >> N; vector A(N); for (auto& a : A) cin >> a; long long S = 0; bool win = false; bool found = false; for (long long a : A) { if (!found && a == 1) { found = true; if (S % 2 == 0) { win = true; } } S += a; } if (S % 2 == 1) { win = true; } cout << (win ? "Alice" : "Bob") << '\n'; } return 0; }