Following the String

Problem Name:
Following the String
Site:CodeForces
Links:
Tags:
Problem setters: