Implement an LFU cache with O(1) operations | Salesforce Interview Question