solved [longest valid parentheses]