Keep a log of recent timestamps. On each request, drop entries older thanwindow. Allow if log size < limit; otherwise reject.
window
solve(limit, window, times) returns array of allow/deny per request.
solve(limit, window, times)
Sample tests