[stack} write code for Valid Parentheses