Pergunta de entrevista da empresa Rippling

Memoize function to track number of function calls and return the first result every time the function is called.