C++ || Easy Video Solution
The video solution for the below code is\nhttps://youtu.be/dGw1n417iFE\n# Code\n\nclass Solution {\nprivate:\n    int calculateAge(string s){\n        return (s
The video solution for the below code is\nhttps://youtu.be/dGw1n417iFE\n# Code\n```\nclass Solution {\nprivate:\n    int calculateAge(string s){\n        return (s[11] - \'0\') * 10 + (s[12] - \'0\');\n    }\npublic:\n    int countSeniors(vector<string>& details) {\n        // 0 - 9 : phoneNumber\n        // 10 : Gender\n        // 11 - 12 : Age\n        // 13 - 14 : Seat\n        // First details string : <PHONE_NUMBER><GENDER>75<SEAT>\n        // s[11] : \'7\' - \'0\' : 55 - 48 : 7\n        // s[12] : \'5\' - \'0  : 53 - 48 : 5\n        int cnt = 0;\n        for(auto &detail : details) cnt += (calculateAge(detail) > 60);\n        return cnt;\n    }\n};\n```
['C++']