Tell me about your experience with data engineering fundamentals, including SQL and Python, and how you apply them in real projects.
Implement the function below to deduplicate records by key while retaining the record with the greatest timestamp. Each input record is a dictionary with key, timestamp, and value; return a list of dictionaries sorted by key.
key, timestamp, and valuekey is a non-empty stringtimestamp is an integervalue is an integerdef aggregate_latest(records):