Matched Brackets Problem Code: ZCO12001

My code is failing for only 2 test cases(6,15), can anyone give me test cases where my code is failing?
I am struck on these for many hours. Help would be much appreciated!!!

https://www.codechef.com/viewsolution/37862211

Try
2
1 2

Mistake was you initialized nesting=1.
https://www.codechef.com/viewsolution/37871467

Thanks alot!!! It worked :slight_smile: