A string contains (, ), and *, where each * can act as (, ), or an empty string. Return true if the string can be made a valid parenthesis sequence.
Input: one line, the string.
Output: true or false.
()
true
(*)
true
(*))
true
Run your code against the sample tests, or Submit to run the full suite.