validparentheses

using stack<Character>, PUSH left parentheses and then check right
parentheses, when stack is empty, return true