Pergunta de entrevista da empresa GlobalLogic

Write a program in C# to find the total count and duplicate character count from a string without using any count or in-built functions.