Design transactional in-memory key-value store | Snowflake Coding Question