e-GMAT interview question

Asked to solve Count and say Leetcode question.