X Interview Question

Given a database containing tweet information compute a histogram over various categories.