String window 2 test cases are failing

two test cases are failing others are correct


plz find the issue
above code is given

Hi @saiKDr

Initialise min_len with 100000 as max string length is 10000.
You need to check before returning the string if start index == -1 or min_len ==100000 then you need to print No string. This will solve the problem.
Link : https://ide.codingblocks.com/s/199624
Hope it Helps.