from sys import stdin input = stdin.readline for _ in range(int(input())): N = int(input()) A = list(map(int, input().split())) F = [False]*2 F[1] = True for a in A[::-1]: if a == 1: F = [True, F[0]] elif a%2 == 1: F[0], F[1] = F[1], F[0] print("Alice" if F[0] else "Bob")