A purchases table:
purchases (
purchase_id INTEGER,
user_id INTEGER,
category TEXT
)
For each user, find their most frequently purchased category. If two or more
categories tie for the top count, pick the alphabetically FIRST one.
Return columns: user_id, category, purchase_count
(purchase_count = how many times the user bought that category).
Order by user_id ASC.