Microsoft interview question

Program an accelerometer chip in Arduino language.