Balanced Parenthesis


Code is failing at case (()))( please help.

@akankshaanand99
Instead of break you can use return to terminate the program. Or you can make a flag variable to keep a check if that condition occurs.

Okay, got my mistake! Thank you!