Write a function to find duplicate characters with counts? function solve( a ){ //write your code here } Login to Submit
Input: "mathematics" Output: {"m": 2, "a": 2, "t": 2}