Given a string s of lowercase and uppercase English letters, repeatedly remove adjacent pairs where one is the lowercase and the other is the uppercase version of the same letter (e.g., 'aA' or 'Aa' are bad pairs).
Return the resulting string after all such removals. The answer is unique.
Input: A single string s of English letters (upper and lowercase).
Output: The resulting string after removing all bad adjacent pairs.
Input: leEeetcode
Output: leetcode
Explanation: 'eE' removed → 'leetcode'.Input: abBAcC
Output:
Explanation: 'bB' removed→'aAcC'→'aA' removed→'cC'→'cC' removed→''.Input: s
Output: s
Explanation: Single character, no removal possible.1 <= s.length <= 100s consists of lowercase and uppercase English letters