Luxoft interview question

Event loop, memoization in JS