Simplify "Longest Valid Parentheses"