EPAM Systems interview question

They gave the program write the output for javascript event loop