[LeetCode 20] Valid Parentheses [Java]