Pregunta de entrevista de TikTok

String manipulation/counting certain chars in string.