Rate limiting using the Sliding Window algorithm

Implement a rate-limiting algorithm called Sliding Window in Python