// // main.cpp // HackerRank in a String! // // Created by soham harnale on 2/11/17. // Copyright © 2017 Soham Harnale. All rights reserved. // #include using namespace std; string mainstr = "hackerrank"; int main() { int testcases, where; string str; bool *visited; cin>>testcases; visited = new bool[mainstr.length()]; for(int i=0; i>str; for(int z=0; z