Google interview question

Encode String with Shortest Length Leetcode No. 471