HARVEY Interview Question

Not a standard question, build a function retryer, input a function and build fixed interval, exponential retries. handle configurable max attempts, work with sync/async functions, and provide a clean API