longestValidParentheses, TLE Again.
reverse search.