Didn’t able to understand what exactly is the question asking.
Can you please explain. Also it would be great if can explain the test case as well.
Job for Bounties
Hey @aman2382000
This is the ques https://www.geeksforgeeks.org/length-of-the-longest-valid-substring/
If your doubt is resolved please mark it as closed.