0471: Encode String with Shortest Length

Problem Statement