String Compression problem - Lecture 32 | Leetcode 443