Wise Interview Question

Implement a circuit breaker in HackerRank