Slow ass Javascript
I imagine the area this needs to be optimized is finding the correct server, but not sure how to approach that\n\n\n\nconst busiestServers = ( k, arrival, load 
I imagine the area this needs to be optimized is finding the correct server, but not sure how to approach that\n\n```\n\nconst busiestServers = ( k, arrival, load ) => {\n    \n    // keep track of how many requests each server handled\n    const handled = Array(k).fill(0)\n    \n    // keep track of when each server will be available again\n    const servers = Array(k).fill(0)\n    \n    // finds the ideal available server\n    // i think there\'s an optimization here but not clue how to approach it\n    const findserver = ( i, t ) => {\n        let j = i % k\n        if ( servers[j] <= t ) return j\n\n        for ( let l = j + 1; l < k; l++ ) {\n            if ( servers[l] <= t ) return l\n        }\n        for ( let l = 0; l < j; l++ ) {\n            if ( servers[l] <= t ) return l\n        }\n        \n        return false\n    }\n    \n    let max = 0\n    arrival.forEach( ( time, i ) => {\n\n        // find available\n        let serverIndex = findserver( i, time )\n        if ( false === serverIndex ) return\n        \n        // add load\n        handled[ serverIndex ]++\n        max = Math.max( max, handled[ serverIndex ] )\n        servers[ serverIndex ] = time + load[i]\n    })\n\n    return handled.reduce( ( a, x, i ) => x == max ? a.push( i ) && a : a, [] )\n}\n\n```
['JavaScript']