Portside (US) interview question

Solve a JS task with asynchronous code: setTimeout and promises