Pregunta de entrevista de Ness Digital Engineering

Q: Find the duplicate chars count form the given string input?