Leetcode 471 Encode String With A Bead Of Mass