Google Frontend Interview Tech Screen Experience

In the front end of the page, write a callback function for retrying async calls as follows:

// Retry async call using a callback function
function retryAsyncCall(callback) {
    // Implementation code here
}

I made a mistake by writing a FOR LOOP, and it was not well received.