Your question is Automating Vulnerability Detection. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Tell me about a time you built automation to detect vulnerabilities at scale.
Implement find_unique_vulnerabilities(findings) as a compact coding exercise. Each finding is [asset_id, vulnerability_id, severity, timestamp]. Return one finding per (asset_id, vulnerability_id), keeping the highest severity and, among equal severities, the earliest timestamp. Sort the result by asset_id, then vulnerability_id.
def find_unique_vulnerabilities(findings):