Given a string containing just the characters '(' and ')'. Find the length of the longest valid (well-formed) parentheses substring.
One string consisting of characters '(' and ')' of length no more than 10^6
.
Print the length of the longest well-formed parentheses substring.