Design a data structure for dynamic top‑K frequency | Bloomberg Interview Question