Druva Interview Question

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