3 line Java solution, 0 ms, 100% faster
Code\n\nclass Solution {\n    public String greatestLetter(String s) {\n        for (char c = \'Z\'; c >= \'A\'; c--)\n            if(s.indexOf(c) != -1 && s.in
# Code\n```\nclass Solution {\n    public String greatestLetter(String s) {\n        for (char c = \'Z\'; c >= \'A\'; c--)\n            if(s.indexOf(c) != -1 && s.indexOf(Character.toLowerCase(c)) != -1) return String.valueOf(c);\n        return "";\n    }\n}\n```
['String', 'Java']