Reduce String By Cancelling AB And CD Pairs

Company: American Express

Difficulty: easy