Write a program to implement a rate limiter that allows N executions per second.
HardProblem Statement
Write a program to implement a rate limiter that allows N executions per second.
Sample Input
Function: printMessage, Limit: 2 calls per second.
Sample Output
Message 1 Message 2 Rate limit exceeded
Limits
Time: 2s · Memory: 256 MB