BEATS 100% || BEST SOLUTION IN JAVA
\n# Code\njava []\nclass Solution \n{\n    public String greatestLetter(String s) \n    {\n        for(char ch=\'Z\';ch>=\'A\';ch--)\n        {\n            if(
\n# Code\n```java []\nclass Solution \n{\n    public String greatestLetter(String s) \n    {\n        for(char ch=\'Z\';ch>=\'A\';ch--)\n        {\n            if(s.contains(String.valueOf(ch)) && s.contains(String.valueOf((Character.toLowerCase(ch)))))\n            {\n                return String.valueOf(ch);\n            }\n        }\n        return "";\n    }\n}\n```
['Java']