Nagarro Interview Question

Simple string manipulation questions like count repetition of chars in a string