Pregunta de entrevista de Druva

coding Q.-String character count and putting that into a new string