CitiusTech Interview Question

WAP to find and count the duplicate character from string