Okta interview question

Design and write Rate Limiting Algorithms in your choosen language