Company: Zeta_4August
Difficulty: medium
Servers Problem Description A company has N servers, labeled from 1 to N. In the beginning, all the servers have no workload. M requests are sent to the company's API. The company will distribute these requests evenly among its servers to keep the workload balanced. The workload is balanced when the busiest server has the least possible load. Which server will handle the request for each API request made? Notes Each request adds to the overall workload of the servers. If two servers have the same minimum workload, the server that is labeled with the smaller number will handle the request. Function Description Complete the solution function provided in the editor. The function takes the following 3 parameters and returns the solution: N : Represents the number of servers M : Represents the number of requests requests : Represents the load of each request (an array/vector) Input format for custom testing Note: Use this input format if you are testing against custom input or writing code