Pregunta de entrevista de Cushon

How would you memoize with vanilla JS