How to do it String Window!

I have been trying with the two pointer method, but it gives me wrong answer. I don’t know why?
Please if there is any discrepancy in my code!

You are printing “No string” whereas you have to print “No String”.
Correct this and then check.

By printing “No String”, yes it decreased to wrong test cases. But still I am getting 7/9 passed test cases and 2/9 wrong test cases

I have considered all those strings possible and took the string with minimum length

Save your updated code on ide.codingblocks.com and share its link.

I have shared my code script, please look at it