Balanced Parenthesis Problem


Why one test case is failing ??

You are checking for only one kind of bracket, You need to check for all 3 kinds of brackets.

I have to make 3 different functions for every kind of bracket??

In the same function use 3 if’s.