Problem
A string is bad if it has two adjacent characters that are the same letter in different cases, such as "aA" or "Bb". Given a string s of English letters, keep deleting such pairs until the string is good, and return it. An empty string is good.
Example 1
- Input
- s = "leEeetcode"
- Output
- "leetcode"
- Why
- "eE" or "Ee" cancels
Example 2
- Input
- s = "abBAcC"
- Output
- ""
- Why
- "bB" goes, then "aA", then "cC"
Example 3
- Input
- s = "s"
- Output
- "s"
Constraints
1 <= s.length <= 100s contains only lowercase and uppercase English letters.