complete problems/valid-parentheses/ by stack