Verifone Interview Question

Write a program for producer consumer problem Count the repetitive character from given string