Design a service to calculate the top k listened songs in past 24 hours

We have a service that is notified when songs are listened to.

Design it so it's able to return the top k listened songs in the past 24 hours.

Comments (7)