#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double lf;
typedef unsigned long long ull;
typedef pair<int,int>P;
typedef pair<int,char>Q;
const int inf = 0x7f7f7f7f;
const ll INF = 2e18;
const int N = 1e6+10;
const ull base = 1313131;/*双hash知识点*/
const ll base1 = 131;
const ll mod =  998244353;
const double PI = acos(-1);
inline int read(){int x=0,f=1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}return x*f;}
inline string readstring(){string str;char s=getchar();while(s==' '||s=='\n'||s=='\r'){s=getchar();}while(s!=' '&&s!='\n'&&s!='\r'){str+=s;s=getchar();}return str;}
int random(int n){return (int)(rand()*rand())%n;}
void writestring(string s){int n = s.size();for(int i = 0;i < n;i++){printf("%c",s[i]);}}
//https://codeforces.com/contest/1527
//https://codeforces.com/contest/1365


char s[N];
void solve(){
    int n = read();
    scanf("%s",s+1);
    int sum = 0;
    for(int i = 1;i <= n;i++){
        if(s[i]=='1'&&s[n-i+1]=='0') sum++;
    }
    int x = 0;
    for(int i = 1;i <= n;i++){
        if(s[i] == '0') x++;
    }
    if(sum >= 2) puts("ALICE");
    else if(sum == 0){
        if(x%2 == 0|| x==1) puts("BOB");
        else puts("ALICE");
    }else {
        if(x == 2) puts("DRAW");
        else puts("ALICE");
    }
}
int main(){
    //freopen("E:/ACM/test/in.txt","r",stdin);
    //srand((unsigned)time(NULL));

    int t = read();
    while(t--){
        solve();
    }
    return 0;
}

/*
10 1000 5
1  1  1  1  3  1  2  3  7  5

5 6 5
7  7  9  1  5
 */