IMC Trading interview question

Build a rate limiter in cpp