Minimal Possible String

Problem Name:
Minimal Possible String
Site:Spoj
Links:
Tags:
Problem setters: