Qualcomm interview question

write custom "i2_read", "i2c_write" api's.