from functools import lru_cache def naive(s): n=len(s) # 1:Alice,0:Bob @lru_cache(None) def rec(t,turn): # print(t,turn) if len(t)==n*2-1: return eval(t)&1 for i in range(len(t)-1): if (t[i].isdigit()) and (t[i+1].isdigit()): nt=t[:i+1]+'+'+t[i+1:] if rec(nt,turn^1)==turn: return turn nt=t[:i+1]+'*'+t[i+1:] if rec(nt,turn^1)==turn: return turn return turn^1 return rec(s,1) def solve(s): n=len(s) if n%2==0: return s[0]=='1' or s[-1]=='1' or ("11" in s) else: return s[0]!=s[-1] and ("11" not in s) # for n in range(1,10): # ret=0 # for mask in range(1<>i&1 else '0') # if naive(s)!=solve(s): # print(s) # ret+=1 # print(n,ret) T=int(input()) for _ in range(T): n=int(input()) s=str(input()) t="" for c in s: if ord(c)%2==0: t+='0' else: t+='1' print("Alice" if solve(t) else "Bob")