Shell Interview Question

asked to design a logger rate limiter