#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while (T--) { int N; string S; cin >> N >> S; const bool left_odd = ((S.front() - '0') % 2 == 1); const bool right_odd = ((S.back() - '0') % 2 == 1); bool has_adjacent_odds = false; for (int i = 0; i + 1 < N; ++i) { const bool current_odd = ((S[i] - '0') % 2 == 1); const bool next_odd = ((S[i + 1] - '0') % 2 == 1); if (current_odd && next_odd) { has_adjacent_odds = true; break; } } bool alice_wins; if (N % 2 == 0) { alice_wins = left_odd || right_odd || has_adjacent_odds; } else { alice_wins = (left_odd != right_odd) && !has_adjacent_odds; } cout << (alice_wins ? "Alice" : "Bob") << '\n'; } return 0; }