Alaan interview question

Implement a function that retries an async operation with exponential backoff. **Requirements:** - Retry failed operations - Wait longer between each retry (1s, 2s, 4s, 8s...) - Return result on success - Throw error after max retries javascript async function retryWithBackoff(asyncFn, maxRetries = 3, baseDelay = 1000) { // YOUR CODE HERE }