Design a CRUD based application (backend only). This was asked in the Take-home assignment stage, Take-home round 1; the candidate implemented it in JavaScript and Node.js. The fuller prompt was: "Design a CRUD based application (Backend only) for railway reservation system."
Implement process_reservations(operations). Each operation is a dictionary with action (create, read, update, or delete) and reservation_id; create operations also include passenger, train, and seat. Return one result per operation: the reservation for successful create, read, or update, True or False for delete, and None for invalid or missing records.
Example: creating R1 returns its record; reading R1 returns the same record.
def process_reservations(operations):