Your question is Design an Image Cache Library. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Design an in-memory image cache library. The cache should support fast lookup by key, bounded memory usage, and automatic eviction when memory pressure increases. Explain how you would store entries, choose what to evict, and react to memory warnings or low-memory conditions.