Minimum Ternary String

Problem Name:
Minimum Ternary String
Site:CodeForces
Links:
Tags:
Problem setters: