Simple approach C++
Code\n\nclass Solution {\npublic:\n    int countSeniors(vector<string>& details) {\n        int n = details.size(), c=0;\n        for(int i=0; i<n; i++)\n      
# Code\n```\nclass Solution {\npublic:\n    int countSeniors(vector<string>& details) {\n        int n = details.size(), c=0;\n        for(int i=0; i<n; i++)\n        {\n            string age = details[i].substr(11,2);\n            if(stoi(age,0,10)>60) c++;\n        }\n        return c;\n    }\n};\n```
['C++']