Design an API Rate Limiter — Medium System Design Problem