write post for valid parentheses