OpenAI interview question

Design an API for an in-memory database.