Implement DetectionStore with Put(const Detection&) and GetNext() that returns the next Detection to execute based on risk score (Detection has unique_id, risk_score, data).
Asked in the Coding stage. Implement a store that accepts detections and returns the next detection to execute by highest risk_score; if scores tie, return the one inserted earlier.
Put(detection): inserts one detection object with fields unique_id, risk_score, and data.GetNext(): removes and returns the next detection object, or null if the store is empty.def process_detection_operations(operations):