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