Code is running fine in 8 test cases but failed in two

Code is running fine in 8 test cases but failed in two, can you help me to check where my program in failing.

Hey @himanshu_goyal :grinning:, I would like to help you just share your code with me on ide.codingblocks.com .
Thank you.

Hey @himanshu_goyal can you please tell me that exactly which test case number are you failing ?

It is failing in test case 2 and 7

Hey @himanshu_goyal why you are failing test case is because you are not following the output format, if there’s not string that exist you should print “No String” without using " ", whereas as per your test case number 7, your code is working perfectly fine. Moreover if you still have problem i can provide you with both the test cases on live chat, as your code & implementation working fine :smile:
Keep it up @himanshu_goyal :smile:
Thank You