C&D Labs interview question

Print duplicate character with count in a string