Balanced Ternary String

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