Maventic Interview Question

Count the identical characters in String