EPAM Systems interview question

How to design a cache