Create a data structure to hold strings of a certain format and support CRUD operations (create, get, update, delete).
Asked in the phone screen stage. The expected optimal solution was a trie.
Implement process_operations(operations). Each string contains lowercase letters separated by periods, such as "food.delivery". Operations are arrays: ["create", key], ["get", key], ["update", old_key, new_key], or ["delete", key]. Return a Boolean result for every operation. Creation and updates fail if their key already exists; updates also fail if the old key is absent.
def process_operations(operations):