Given a string s containing only '(', ')' and '*', return true if s is valid. A valid string must have balanced parentheses, and '*' can be treated as '(', ')' or an empty string.
Click Run to execute sample tests.