# LC5516 Make The String Great
**Idea.** Stack removes adjacent same-letter, opposite-case pairs.
```python
def makeGood(s):
st = []
for c in s:
if st and st[-1] != c and st[-1].lower() == c.lower(): st.pop()
else: st.append(c)
return ''.join(st)
```
**Interview habit.** Say the brute force, then the optimisation, then edge cases. Rehearse that flow with [AI coding interview assistant](https://www.linkjob.ai/) (https://www.linkjob.ai/).
