func_code_string: /*   Author: Sanskar Agarwal   Nick: sanskaragarwal   Birla Institute Of Technology, Mesra   */   #include <bits/stdc++.h>   using namespace std;   #define ll long long int   #define endl   n    #define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);   #define F(i,a,b) for(ll i = (ll)(a); i <= (ll)(b); i++)   #define RF(i,a,b) for(ll i = (ll)(a); i >= (ll)(b); i--)   #define INF 100009   #define mod 1000000007   #define pb(x) push_back(x)   #define mp(x,y) make_pair(x,y)   #define ff first   #define ss second   #define test while(t--)solve();      void solve()   {    int n;    cin >> n;    int pos[32];    int arr[n];    memset(pos, 0, sizeof(pos));    int xo = 0;    int pre[n];    for (int i = 0; i < n; ++i)    {     cin >> arr[i];     xo ^= arr[i];     pre[i] = xo;    }    bool flag = !xo;    for (int i = 0; i < n; ++i)    {     for (int j = i + 1; j < n; ++j)     {      int sp1 = pre[i];      int sp2 = pre[j] ^ pre[i];      int sp3 = pre[n - 1] ^ pre[j];      flag |= (sp1 == sp2 && sp2 == sp3);     }    }    if (flag)     cout <<  YES  << endl;    else     cout <<  NO  << endl;   }      int main()   {   #ifndef ONLINE_JUDGE    freopen( input.txt ,  r , stdin);    freopen( output.txt ,  w , stdout);   #endif    fast    int t;    // t = 1;    cin >> t;    test;   #ifndef ONLINE_JUDGE    cout <<   nTime Elapsed :   << 1.0 * clock() / CLOCKS_PER_SEC <<   s n ;   #endif    return 0;   }