Cognizant interview question

Write a local cache algorithm