T = int(input()) Alice = 'Alice' Bob = 'Bob' def grundy(x): if x == 1: return 1 return (x & 1) + 1 for _ in range(T): N = int(input()) A = list(map(int,input().split())) g = 0 for a in A: g ^= grundy(a) if g > 0: print(Alice) else: print(Bob)