Indeed interview question

Coding of cached data fetching routine. Algorithms. Efficiency and big-O notation.