#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define For(i,a,b,c) for(ll i=a;i<b;i+=c)
#define For2(i,a,b,c) for(ll i=a;i>=b;i-=c)
#define vec_ll vector<vector<ll>>
#define vec_pr vector<pair<ll,ll>>
#define p_ll pair<ll,ll>
#define pbk push_back
#define mkpr make_pair
#define fst first
#define snd second

void print(ll *arr, ll n){
    For(i,0,n,1)cout<<arr[i]<<" ";
    cout<<endl;
}

void print_vec(vector<ll> &vec, ll n){
    For(i,0,n,1)cout<<vec[i]<<" ";
    cout<<endl;
}


bool s_sec(const pair<ll,ll> &a, const pair<ll,ll> &b) {
    return (a.second < b.second);
}

ll fast_expo(ll a, ll p){
    //cout<<a<<" ";
    ll x=p-2;
    ll curr=a;
    ll ans=1;
    while(x!=0){
        if(x%2==1){
            ans=(ans*curr)%p;
        }
        x/=2;
        curr=(curr*curr)%p;
    }
    return ans;
}

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    ll t;
    cin>>t;

    while(t--){
        ll n;
        cin>>n;
        string s;
        cin>>s;

        ll zero=0;
        For(i,0,n,1){
            if(s[i]=='0')zero++;
        }

        ll signal=0;

        ///First check whether the string is already a palindrome
        bool palin=true;
        ll ptr[2]={0,n-1};
        while(ptr[0]<ptr[1]){
            if(s[ptr[0]]!=s[ptr[1]]){
                palin=false;
                break;
            }
            ptr[0]++;
            ptr[1]--;
        }

        if(palin==true){
            if(zero==0){
                signal=0;
            }
            else
            if(zero==1){
                signal=2;
            }
            else
            if(n%2==1){
                if(s[n/2]=='1'){
                    signal=2;
                }
                else{
                    signal=1;
                }
            }
            else{
                signal=2;
            }
        }
        else
        if(zero==2){
            ///Check the special case;
            if(n%2==1&&s[n/2]=='0')signal=0;
            else signal=1;
        }
        else{
            signal=1;
        }

        if(signal==0)cout<<"DRAW\n";
        else
        if(signal==1)cout<<"ALICE\n";
        else cout<<"BOB\n";
    }
}
