String Window problem

I:m having 2 test case error kindly modify my code

@Legendankit In the question it is given that there is a possibility that answer doesn’t exists.
So add one extra condition at last if if(l==INT_MAX) return “No string”;
After this, all the test cases will pass.

Please also mark this doubt as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.