Wise Interview Question

I had to implement a circuit breaker