The problem, in one line. Build a tiny timeline service: post a tweet, follow and unfollow users, and fetch a user’s feed of the ten most recent tweets from themselves and everyone they follow. LeetCode 355.
The tell. Several lists that are each already in time order, and you want the newest few across all of them. That is a merge of sorted lists, and a heap holding one entry per list is how you merge without reading everything.