function juice(number,type,bottle){ let map = new Map(); let res = 0; let count =1; for(let item of bottle){ if(map.has(item)){ map.set(item,count+1) }else{ map.set(item,count); } } let key = Array.from(map); console.log(key); for(let i=0;i<key.length;i++){ res += key[i][1]*0.5 } res = Math.ceil(...