Philips Interview Question

Print number of duplicates in a character array