Rudolf and the Ugly String

Problem Name:
Rudolf and the Ugly String
Site:CodeForces
Links:
Tags:
Problem setters: