Redis interview question

Was asked to write a driver for db