Infogain interview question

Design Rate Limiter without using any lib