give string contain character return length long valid wellformed parenthesis substre Example 1input s output 2explanation the long valid parenthesis substre Example 2input s output 4explanation the long valid parenthesis substre Example 3input s output 0 constraints0 slength 3 104si