/// https://leetcode.com/problems/valid-parentheses/ class Solution { public: bool isValid(string A) { stack s; for(int i=0;i