Pregunta de entrevista de AT&T

lru based question and how to implement