Remove All Adjacent Duplicates in String
Easy · Stack & Monotonic Stack · about 10 minutes
Asked at Meta, Google, Amazon, Bloomberg.
Given a string s of lowercase letters, repeatedly remove two adjacent equal letters until no such pair remains. Return the final string (it is unique).