#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
#include <iterator>
#include <climits>
#include <cmath>
#include <stack>
#include <set>
#include <queue>
#include <list>

using namespace std;

#define ll long long int
#define pb push_back
#define mp make_pair
#define pp pair<ll,ll>

bool palindrome(string s,ll n)
{
    ll i=0,j=n-1;
    while(i<j)
    {
        if(s[i]!=s[j])
            return false;
        
        i++;
        j--;
    }
    return true;
}

int main()
{
    ll t;cin>>t;
    while(t--)
    {
        ll n;cin>>n;
        string s;cin>>s;
        ll zero=0;
        for(ll i=0;i<n;i++)
        {
            if(s[i]=='0')
                zero++;
        }
        if(palindrome(s,n))
        {
            if(zero%2==0 || zero==1)
                cout<<"BOB"<<endl;
            else
                cout<<"ALICE"<<endl;
        }
        else
        {
            if(n%2!=0 && s[n/2]=='0' && zero==2)
                cout<<"DRAW"<<endl;
            else
                cout<<"ALICE"<<endl;
        }
    }
}