Question

Write a function to find duplicate characters with counts?

Login to Submit

Examples

Input: "mathematics"
Output: {"m": 2, "a": 2, "t": 2}