Simple solution | Runtime => 0 ms - 100 % beats | Memory => 41.3 MB - 99.5% beats
Approach\nApproach:\n1. Initialize a variable count to 0.\n2. Iterate over each string s in the details array.\n3. Extract the age information from s by convert
# Approach\nApproach:\n1. Initialize a variable `count` to 0.\n2. Iterate over each string `s` in the `details` array.\n3. Extract the age information from `s` by converting the characters at indices 11 and 12 to an integer.\n4. If the extracted age is greater than 60, increment the `count` variable.\n5. After iterating over all strings, return the final `count` value, which represents the number of passengers who are strictly more than 60 years old.\n\nAlgorithm:\n1. Initialize `count` to 0.\n2. For each `s` in `details`, do steps 3-4.\n   - Extract the age from `s` using `(s.charAt(11) - \'0\') * 10 + (s.charAt(12) - \'0\')`.\n   - If the age is greater than 60, increment `count`.\n3. Return `count` as the result.\n\n# Complexity\n- Time complexity: O(n)\n\n- Space complexity: O(1)\n\n# Code\n```\nclass Solution {\n    public int countSeniors(String[] details) {\n        int count = 0;\n        for(String s : details){\n            int age = (s.charAt(11) - \'0\') * 10 + (s.charAt(12) - \'0\');\n            if(age > 60) count++;\n        }\n        return count;\n    }\n}\n```
['Array', 'String', 'Java']