Implement LRU and LFU caches | Verkada Interview Question