Implement an in-memory key-field-value DB with TTL | Meta Interview Question