Solve "Valid Parentheses"