OpenAI interview question

Write code to implement a DB.