https://medium.com/@avrdan/leetcode-443-string-compression-in-c-linear-algorithm-cpp-interview-problem-ff80e31c5865