Amazon interview question

design a rate limiter/notification system