text of English letters. Find the letter that appears in text both as lowercase and as uppercase and comes later in the alphabet than any other such letter.
Return it in uppercase. If no letter appears in both cases, return the empty string.text='qAwBaQb' → 'Q'
a, b and q all appear in both cases. The latest in the alphabet is q, so the answer is Q.
text='zYxW' → ''
No letter appears in both cases, so the answer is the empty string.
text='mM' → 'M'
text consists of lowercase and uppercase English letterstext='qAwBaQb'
'Q'
Run checks the first 3 tests in your browser. Submit checks all 118 tests on the server, hidden ones included.