Pergunta de entrevista da empresa SingleStore

How to store a frequency table of integers effeciently.