Kongsberg Digital interview question

JavaScript closure Event loop DSA