OpenAI Interview Question

Write code to implement a DB.