IBM interview question

implement the rate limiter implemetations