I don’t know why but my code is giving WA. I think my logic is correct
#include<iostream>
using namespace std;
int main()
{
int t;
char a[] = "cbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcba";
cin >> t;
while(t--)
{
int n;
cin >> n;
int j = 0;
if(n < 26) j = n+1;
else if(n >= 26 && n < 52) j = n+2;
else if(n >= 52 && n < 78) j = n+3;
else j = n+4;
for(int i = 107-j;i < 107;i++) cout << a[i];
cout << endl;
}
return 0;
}