Solution For Longest Valid Parentheses