Pergunta de entrevista da empresa Ness Digital Engineering

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