String window challenge


whats wrong in this code

In line 41 check for resR == -1, nor resL == -1.
Now, try to debug and figure out the other error. If you are still having trouble ask me again.

@yashmalik.official now it showing wrong output

I wanted you to try something, anyway here’s the corrected code