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