LFU Cache Design
Design and reason about a Least Frequently Used (LFU) cache with capacity `capacity`. An LFU cache supports `get(key)` and `put(key, value)`: `get` returns the value for `key` or `-1` if absent; `put` inserts or updates the key. Every successful `get` and every update of an existing key increases that key's usage frequency. When inserting a new key into a full cache, evict the key with the smallest frequency; if multiple keys share that frequency, evict the least recently used among them.