NiCE interview question

Practice the event loop in js