Hard
Given a string s containing just the characters '(' and ')', return the length of the longest valid (well-formed) parentheses substring.
s
'('
')'
Input: s = "(()" Output: 2
Input: s = ")()())" Output: 4
Input: s = "" Output: 0