#include #include #include #include #include #include #include int main(){ int q,j,i,a0; char h[10]="hackerrank"; scanf("%d",&q); for(a0 = 0; a0 < q; a0++){ char* s = (char *)malloc(512000 * sizeof(char)); scanf("%s",s); // your code goes here j=0; for(i=0;i