You're working on a read notifications feature for your very popular group chat app. The main idea is to show a small rounded icon containing the viewer's profile picture below the messages they have read. Given that everyone is eventually expected to read all messages, your team decided on the following rules for the feature:
- There can never be duplicated icons among the messages.
- If a viewer has read multiple messages, their icon will be docked to the last message (in chronological order) that they read.
- If multiple icons must be displayed for any particular message, then they will be displayed in sorted order by the viewers' ids.
- A viewer cannot ever see their own icon in any message.
You know the time at which each message is sent. You may assume that communication is perfect and that every message is delivered to every user at exactly the same time. Given an access time $T_q$ and a viewer $V_q$, return the ids of the users whose icons must be shown to user $V_q$ for the message that was sent closest to the access time $T_q$.
Output
Print $K$ space-separated integers in ascending order in a single line. They correspond to the ids of the $K$ viewers whose read notification icons must be shown for the message closest in time to $T_q$ for the given viewer. If there are no ids to write, print "Nothing to display".