http://oj.leetcode.com/problems/valid-parentheses/