Valid Parenthesis Problem

GEtting wrong answer

hi ashwani,
Your logic is right, you were just missing one condition due to which your code was giving run time error.
If the stack is empty and [,{,( one of these bracket comes then you have to return false.
I have added that condition and marked comment on it.


Please let me know if there is any other doubt.