Collapsing Strings

Problem Name:
Collapsing Strings
Site:CodeForces
Links:
Tags:
Problem setters: