C++ || Using Array || Simple Solution || 0ms || faster than 100%
\n\nSimple easy to understand code\nUpvote if you found easy and helpfull\n\n string greatestLetter(string s) {\n        \n        int up[26] = {0};\n        in
![image](https://assets.leetcode.com/users/images/aa16ae83-d28e-499a-90c5-fff48d1b0d1b_1662918554.5522704.png)\n\n**Simple easy to understand code**\n**Upvote if you found easy and helpfull**\n```\n string greatestLetter(string s) {\n        \n        int up[26] = {0};\n        int low[26] = {0};\n        \n        for( char c :  s){\n            \n            if( c >= 65 && c <= 90 ){\n                \n                up[c - \'A\']++;\n            }\n            else{\n                low[c - \'a\']++;\n            }\n            \n        }\n        \n// storing the answer\n    string res  = "";\n        \n//        counter from backward as we want to get the greatest English letter\n        for( int i =25; i >= 0; i--){\n            \n            if( up[i] >=1 && low[i] >= 1){\n                res  += i + \'A\';\n//                 conversion from first integer to char aand then char to string;\n                break;\n//                 breaking from the loop as we find our first greatest character\n            }\n        }\n       \n        return res;\n    }\n};\n```
['Array', 'String', 'C', 'C++']