EY interview question

1. Write a program to manipulate string, like repeating character count in string.