GoodRx Interview Question

Make it so function can only run X times per second.