add longest valid parentheses method 2
add longest valid parentheses method2