T = gets.to_i T.times do n = gets.to_i a = gets.split.map(&:to_i).sort if n.even? cnt = a.each_slice(2).count { |x, y| x != y } if cnt > 0 puts 'Alice' else puts 'Bob' end else puts 'Alice' end end