Write a function to check if a string is a valid parenthesis string.
HardProblem Statement
Write a function to check if a string is a valid parenthesis string.
Sample Input
()[]{}Sample Output
True
Limits
Time: 2s · Memory: 256 MB
Write a function to check if a string is a valid parenthesis string.
()[]{}True
Time: 2s · Memory: 256 MB