Solution: Longest Valid Parentheses