Encode String with Shortest Length

Encode String with Shortest Length - Coding Problem | K5kC