EPAM Systems Interview Question

They gave the program write the output for javascript event loop