Maximize the Remaining String

Problem Name:
Maximize the Remaining String
Site:CodeForces
Links:
Tags:
Problem setters: