Implement an in-memory DB with TTL backup/restore | Anthropic Interview Question