Implement a MultiMap: a custom data structure mapping keys to lists of values, first the basic functionality and then a set of enhanced operations. Asked in the HackerRank coding assessment stage. Two-part assessment: part one basic functionality, part two enhanced operations, harder under time pressure.
Implement execute_multimap(operations). Each operation is an array: ['add', key, value], ['get', key], ['remove', key, value], ['remove_all', key], ['contains', key, value], or ['keys']. Return one result per operation. add returns None; get returns values in insertion order; remove returns a boolean and removes only the first matching value; remove_all returns all removed values; contains returns a boolean; keys returns keys in insertion order.
def execute_multimap(operations):