Bazaarvoice Interview Question

implement a cache function