Box interview question

Design in memory db(KV db)