Design a simple API rate limiter | Microsoft Interview Question