Good strings

Problem Name:
Good strings
Site:HackerEarth
Links:
Tags:
Problem setters: