First, implement a Key-Value store with simple add, get, and delete functions.
Asked in the Interview 2 stage. Reported follow-up: modify the store to keep previous values for a key and implement get_at_effective_date(key, time).
Implement run_operations(operations). Each operation is an array: ['add', key, value, time], ['delete', key, time], ['get', key], or ['get_at_effective_date', key, time]. Return an array containing results only for read operations. Return null when no value exists. Timestamps are unique per key, values are strings, and deleted versions remain available to historical reads.
def run_operations(operations):