function processLogs(logs, threshold) { const n = logs.length; let transactionCountMap = new Map() for(let i=0;i x[1] >= threshold).map(x => x[0]); return overThreshholdUsers.sort((x,y) => parseInt(x)-parseInt(y) > 0 ? 1 : -1) }