class Solution { public: bool isValid(string s) { std::stack myStack; int len = s.length(); char c; for(int i=0;i