One test case is not passing


my one test case is not passing, find flaw in my code and how to correct it.

@shivamgoel150 your logic doesn’t seem to be correct. your code is only handling cases where simple braces like this ‘( )’ are used else it is giving wrong answer.
try to change your approach.

https://ide.codingblocks.com/s/277220 corrected the code but still 2 test cases are not passing

look at this code once then try to modify your code https://ide.codingblocks.com/s/277244.