1 testcase is giving wrong output
There are various corner cases in this question . Try to think them . Also you have match ‘(’ with ‘)’ , ‘{’ with ‘}’ and ‘[’ and ‘]’.
There are various corner cases in this question . Try to think them . Also you have match ‘(’ with ‘)’ , ‘{’ with ‘}’ and ‘[’ and ‘]’.