Minimum string window


please check whats wrong.

I think your solution is correct. I am unable to find a case where it fails. Where have you submitted this solution.

i tried to submit this on the course challenges part.
also it does not show correct output even for the given test case. which is
Sample Input

qwerty asdfgh qazxsw
qas

Sample Output

qazxs

If you are able to get this test case. You can easily debug your code. And write a code to pass all the cases.

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.