Create a client and server that send each other video and text.
Implement simulate_exchange(client_messages, server_messages) as an in-memory exchange. Each input is an array of message maps with type, timestamp, and payload; type is "video" or "text". Return one array containing every message, annotated with its sender as "client" or "server", ordered by nondecreasing timestamp. Preserve input order for messages from the same sender, and place client messages before server messages when timestamps are equal. Do not drop or modify messages.
def simulate_exchange(client_messages, server_messages):