#include <bits/stdc++.h>   using namespace std;   void solve(long long case_no) {     long long n;     cin >> n;     vector<long long> a(n);     for (long long i = 0; i < n; ++i) cin >> a[i];     map<long long, long long> mp;     long long mx = LONG_LONG_MIN;     for (long long i = 0; i < n; ++i) {       long long x = i + a[i] % n + n;       ++mp[x % n];       if (mp[x % n] > 1) {         cout <<  NO n ;         return;       }     }     cout <<  YES n ;     return;   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     ;     long long t = 1;     cin >> t;     for (long long i = 0; i < t; ++i) {       solve(i + 1);     }     return 0;   }   