#include <bits/stdc++.h>
using namespace std;
#define ll long long int
ll power(ll a,ll b)
{
    ll p=1;
    for(ll i=1;i<=b;i++)
    p=p*a;
    return p;
}
ll pal(string s)
{
    ll i=0,j=s.length()-1,cnt=0;
    while(i<=j)
    {
        if(s[i]!=s[j])
        cnt++;
        
        i++;
        j--;
    }
    
    return cnt;
}
int main() {
    ll t;
    cin>>t;
    while(t--)
    {
        ll n,c=0,i;
        cin>>n;
       string s;
       cin>>s;
       for(i=0;i<n;i++)
      {
          if(s[i]=='0')
          c++;
      }
      if(!pal(s))
      {
      if(n%2==1 && s[n/2]=='0')
      {
          c--;
          if(c==0)
          cout<<"BOB";
          
          else
          cout<<"ALICE";
      }
      
      
      else if(c%2==0)
      {
          cout<<"BOB";
      }
      cout<<endl;
    }
    else
    {
       if( n%2==1 && s[n/2]=='0' && c==2)
       cout<<"DRAW";
       else
       cout<<"ALICE";
       
       cout<<endl;
    }
    }
}