Given a list of events, each with a message and a timestamp, extract the most frequent event and return its timestamps for further analysis.
Asked in the coding round 1 stage. Example: [{"message": "error_1", "timestamp": 123}, {"message": "error_1", "timestamp": 234}, {"message": "error_2", "timestamp": 456}] returns {"message": "error_1", "timestamps": [123, 234]}.
Implement most_frequent_event(events). Each event is a dictionary with string message and integer timestamp. Return the timestamps in input order. If multiple messages tie, return the one appearing first. The input is non-empty.
def most_frequent_event(events):