完成http://oj.leetcode.com/problems/longest-valid-parentheses/