Implement DOMStore: a store that lets you set, get and delete arbitrary data associated with a DOM node.
Asked in the technical phone screen stage. This was the first of the two phone screen questions, and the candidate notes it can be searched directly on bigfrontend.dev.
Represent each DOM node with an opaque string ID. operations contains objects with op, node, and, for set, value. Return results only for get and delete, in operation order. get returns null when no value exists, while delete returns a Boolean.
def dom_store(operations):