Implement weighted-eviction cache | Netflix Coding Question