Balanced Parathesis


my code is not passing all the test cases
please correct it.

Input Format:
A string of ‘(’ , ‘)’ , ‘{’ , ‘}’ and ‘[’ , ‘]’ .
You are just considering ‘(’ and ‘)’ . Try with considering all these cases and then check your code.

ok thanks .It worked