SingleStore Interview Question

How to store a frequency table of integers effeciently.