Leetcode: Max valid parantheses substring.