Longest Valid Parentheres logn time