Amazon Interview Question

The question is named 'Count and Say' on leetcode