What is the string made of?

Problem Name:
What is the string made of?
Site:HackerEarth
Links:
Tags:
Problem setters: