import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.HashMap; import java.util.Map; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); PrintWriter pw = new PrintWriter(System.out); for (int z = 0; z < t; z++) { int n = Integer.parseInt(br.readLine()); String[] sa = br.readLine().split(" "); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = Integer.parseInt(sa[i]); } Map map = new HashMap<>(); for (int i = 0; i < n; i++) { map.put(a[i], map.getOrDefault(a[i], 0) + 1); } boolean flg = true; for (int v : map.values()) { if (v % 2 == 1) { flg = false; break; } } if (n % 2 == 0 && flg) { pw.println("Bob"); } else { pw.println("Alice"); } } br.close(); pw.flush(); } }