✅💯🔥Simple Code🚀📌|| 🔥✔️Easy to understand🎯 || 🎓🧠Beats 100%🔥|| Beginner friendly💀💯
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public int countSeniors(String[] details) {\n        int count=0;\n        for(int i=0; i<details.length; i++){\n            int ans=0;\n            int n=details[i].length()-3;\n            int x=1;\n            while(details[i].charAt(n)!=\'M\' && details[i].charAt(n)!=\'F\' && details[i].charAt(n)!=\'O\'){\n                ans=ans+(details[i].charAt(n)-\'0\')*x;\n                n--;\n                x*=10;\n            }\n            if(ans>60){\n                count++;\n            }\n        }\n        return count;\n    }\n}\n```\n![7be995b4-0cf4-4fa3-b48b-8086738ea4ba_1699897744.9062278.jpeg](https://assets.leetcode.com/users/images/fe5117c9-43b1-4ec8-8979-20c4c7f78d98_1721303757.4674635.jpeg)
['Array', 'String', 'Python', 'C++', 'Java', 'JavaScript']