function test(str){ let l = str.length; let map = new Map(),rett=[] for(let i = 0 ;i<l;i++) { if(!map.has(str[i])) { map.set(str[i],1) } else { map.set(str[i],map.get(str[i])+1) } } let temp = map.values(),max=0; for(i of temp) { if(i>max) {max=i} } for(i of map) { if(i[1]==max) { rett.push([i[0],max]) } } return rett}


