Cushon interview question

How would you memoize with vanilla JS