Compress the String!

Problem Name:
Compress the String!
Site:HackerRank
Links:
Tags:
Problem setters: