#include <bits/stdc++.h> using namespace std; typedef long long ll; void solve(){ int n; cin>>n; string s; cin>>s; int c1=0,c2=0; for(int i=0;i<n;i++) { c1 += s[i] == 'W'; c2 += s[i+n] == 'R'; } cout<<(c1%2==0&&c2%2==0?"YES\n":"NO\n"); } int main(){ ios_base::sync_with_stdio(0),cin.tie(0); int t=1;cin>>t; while(t--) solve(); }