Implement a function route_requests(numTargets, maxConnectionsPerTarget, requests) that simulates a load balancer for a notebook platform running multiple Jupyter target servers. Targets are 1-based indexed. The function processes a list of request strings and returns a log of all successful connection routings. Request formats: - CONNECT,connectionId,userId,objectId — open a new WebSocket…