added validParentheses.java