Schneider Electric interview question

Write driver for I2C device.