Valid Parentheses first solution