Pergunta de entrevista da empresa Bloomberg

One leetcode question was variation of count and say