#include #include using namespace std; bool isSubSequence(string str1,string str2, int m, int n) { int j = 0; for (int i=0; i>cc; while(cc--) { string str1="hackerrank"; string str2; cin>>str2; int m =str1.size(); int n =str2.size(); isSubSequence(str1, str2, m, n)? cout << "YES\n": cout << "NO\n"; } return 0; }