Domanda di colloquio di Amazon

The question is named 'Count and Say' on leetcode