Deep Sea (Greece) interview question

Handling request timeout in javascript