HubSpot interview question

Closures, Memoization - JS questions (Third Round)