最长有效括号

https://leetcode.cn/problems/longest-valid-parentheses/description/